4
|
1 # |
|
2 # Makefile for octave's scripts directory |
|
3 # |
|
4 # John W. Eaton |
|
5 # jwe@che.utexas.edu |
|
6 # Department of Chemical Engineering |
|
7 # The University of Texas at Austin |
|
8 |
|
9 TOPDIR = .. |
|
10 |
|
11 srcdir = @srcdir@ |
409
|
12 top_srcdir = @top_srcdir@ |
4
|
13 VPATH = @srcdir@ |
|
14 |
|
15 include $(TOPDIR)/Makeconf |
|
16 |
651
|
17 INSTALL = @INSTALL@ |
|
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
19 INSTALL_DATA = @INSTALL_DATA@ |
|
20 |
665
|
21 SOURCES = *.m |
4
|
22 |
|
23 DISTFILES = Makefile.in $(SOURCES) |
|
24 |
570
|
25 # Complete directory trees to distribute. |
569
|
26 DISTDIRS = amr-image |
|
27 |
665
|
28 FCN_FILES = $(wildcard $(srcdir)/*.m) |
|
29 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
4
|
30 |
665
|
31 all: |
4
|
32 .PHONY: all |
|
33 |
|
34 install: all |
665
|
35 if test -d $(fcnfiledir) ; then true ; \ |
|
36 else $(TOPDIR)/mkpath $(fcnfiledir) ; fi |
|
37 for f in $(FCN_FILES_NO_DIR) ; do \ |
|
38 rm -f $(fcnfiledir)/$$f ; \ |
|
39 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$$f ; \ |
4
|
40 done |
|
41 .PHONY: install |
|
42 |
|
43 uninstall: |
665
|
44 for f in $(FCN_FILES_NO_DIR) ; do rm -f $(fcnfiledir)/$$f ; done |
4
|
45 .PHONY: uninstall |
|
46 |
|
47 clean: |
|
48 .PHONY: clean |
|
49 |
|
50 tags: $(SOURCES) |
|
51 ctags $(SOURCES) |
|
52 |
|
53 TAGS: $(SOURCES) |
|
54 etags $(SOURCES) |
|
55 |
|
56 mostlyclean: clean |
|
57 .PHONY: mostlyclean |
|
58 |
|
59 distclean: clean |
|
60 rm -f Makefile |
|
61 .PHONY: distclean |
|
62 |
|
63 realclean: distclean |
|
64 rm -f tags TAGS |
|
65 .PHONY: realclean |
|
66 |
|
67 local-dist: |
|
68 ln $(DISTFILES) ../`cat ../.fname`/scripts |
569
|
69 for dir in $(DISTDIRS); do ln -s ../../scripts/$$dir ../`cat ../.fname`/scripts ; done |
4
|
70 .PHONY: local-dist |
|
71 |
|
72 dist: |
|
73 ln $(DISTFILES) ../`cat ../.fname`/scripts |
569
|
74 for dir in $(DISTDIRS); do ln -s ../../scripts/$$dir ../`cat ../.fname`/scripts ; done |
4
|
75 .PHONY: dist |