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 |
686
|
11 script_sub_dir = . |
|
12 |
4
|
13 srcdir = @srcdir@ |
409
|
14 top_srcdir = @top_srcdir@ |
4
|
15 VPATH = @srcdir@ |
|
16 |
|
17 include $(TOPDIR)/Makeconf |
|
18 |
651
|
19 INSTALL = @INSTALL@ |
|
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
21 INSTALL_DATA = @INSTALL_DATA@ |
|
22 |
688
|
23 SOURCES = # *.m |
4
|
24 |
|
25 DISTFILES = Makefile.in $(SOURCES) |
|
26 |
714
|
27 SUBDIRS = control elfun general image linear-algebra miscellaneous \ |
731
|
28 plot polynomial set signal specfun special-matrix startup \ |
1182
|
29 statistics strings time |
686
|
30 |
|
31 DISTSUBDIRS = $(SUBDIRS) |
569
|
32 |
688
|
33 FCN_FILES = # $(wildcard $(srcdir)/*.m) |
|
34 FCN_FILES_NO_DIR = # $(notdir $(FCN_FILES)) |
4
|
35 |
1182
|
36 all: $(SUBDIRS) |
4
|
37 .PHONY: all |
|
38 |
1182
|
39 $(SUBDIRS): |
|
40 echo making all in $@ |
|
41 cd $@ ; $(MAKE) all |
|
42 .PHONY: $(SUBDIRS) |
|
43 |
|
44 install uninstall clean mostlyclean distclean realclean:: |
|
45 $(SUBDIR_FOR_COMMAND) |
|
46 .PHONY: install uninstall clean mostlyclean distclean realclean |
|
47 |
|
48 install:: |
1154
|
49 ls -R $(datadir)/octave > $(datadir)/octave/ls-R |
4
|
50 |
1182
|
51 uninstall:: |
1154
|
52 rm -f $(datadir)/octave/ls-R |
4
|
53 |
1182
|
54 tags TAGS:: $(SOURCES) |
|
55 $(SUBDIR_FOR_COMMAND) |
4
|
56 |
1182
|
57 tags:: |
4
|
58 ctags $(SOURCES) |
|
59 |
1182
|
60 TAGS:: $(SOURCES) |
4
|
61 etags $(SOURCES) |
|
62 |
1182
|
63 distclean:: |
4
|
64 rm -f Makefile |
|
65 |
1182
|
66 realclean:: |
1071
|
67 rm -f tags TAGS Makefile |
4
|
68 |
|
69 local-dist: |
|
70 ln $(DISTFILES) ../`cat ../.fname`/scripts |
690
|
71 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/scripts/$$dir; cd $$dir; $(MAKE) $@; cd ..; done |
4
|
72 .PHONY: local-dist |
|
73 |
|
74 dist: |
|
75 ln $(DISTFILES) ../`cat ../.fname`/scripts |
690
|
76 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/scripts/$$dir; cd $$dir; $(MAKE) $@; cd ..; done |
4
|
77 .PHONY: dist |