4
|
1 # |
|
2 # Makefile for octave's scripts directory |
|
3 # |
|
4 # John W. Eaton |
1452
|
5 # jwe@bevo.che.wisc.edu |
|
6 # University of Wisconsin-Madison |
4
|
7 # Department of Chemical Engineering |
|
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 |
3319
|
25 ALL_M_FILES1 := $(shell find $(srcdir) -name '*.m' -print) |
|
26 ALL_M_FILES := $(patsubst $(srcdir)/%, %, $(ALL_M_FILES1)) |
|
27 |
2452
|
28 DISTFILES = Makefile.in ChangeLog $(SOURCES) configure.in \ |
4292
|
29 configure mkinstalldirs mkdoc mkpkgadd gethelp.cc \ |
3925
|
30 skip-autoheader DOCSTRINGS |
4
|
31 |
4029
|
32 SUBDIRS = audio control deprecated elfun finance general image io \ |
5732
|
33 linear-algebra miscellaneous optimization path plot polynomial \ |
5232
|
34 quaternion set signal sparse specfun special-matrix startup \ |
5589
|
35 statistics strings testfun time |
686
|
36 |
|
37 DISTSUBDIRS = $(SUBDIRS) |
569
|
38 |
688
|
39 FCN_FILES = # $(wildcard $(srcdir)/*.m) |
|
40 FCN_FILES_NO_DIR = # $(notdir $(FCN_FILES)) |
4
|
41 |
3295
|
42 all: $(SUBDIRS) DOCSTRINGS |
4
|
43 .PHONY: all |
|
44 |
1182
|
45 $(SUBDIRS): |
3297
|
46 $(MAKE) -C $@ all |
1182
|
47 .PHONY: $(SUBDIRS) |
|
48 |
4098
|
49 DOCSTRINGS: gethelp$(BUILD_EXEEXT) mkdoc $(ALL_M_FILES) |
3295
|
50 $(srcdir)/mkdoc $(srcdir) > $@.t |
3319
|
51 mv $@.t $@ |
3295
|
52 |
4098
|
53 gethelp$(BUILD_EXEEXT): gethelp.cc |
4298
|
54 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) |
4093
|
55 |
2811
|
56 install install-strip uninstall clean mostlyclean distclean maintainer-clean:: |
1685
|
57 @$(subdir-for-command) |
2811
|
58 .PHONY: install install-strip uninstall |
|
59 .PHONY: clean mostlyclean distclean maintainer-clean |
1182
|
60 |
2811
|
61 install install-strip:: |
4413
|
62 ls -LR $(DESTDIR)$(datadir)/octave > $(DESTDIR)$(datadir)/octave/ls-R |
|
63 ls -LR $(DESTDIR)$(libexecdir)/octave > $(DESTDIR)$(libexecdir)/octave/ls-R |
4
|
64 |
1182
|
65 uninstall:: |
4413
|
66 rm -f $(DESTDIR)$(datadir)/octave/ls-R $(DESTDIR)$(libexecdir)/octave/ls-R |
4
|
67 |
1182
|
68 tags TAGS:: $(SOURCES) |
|
69 $(SUBDIR_FOR_COMMAND) |
4
|
70 |
1182
|
71 tags:: |
4
|
72 ctags $(SOURCES) |
|
73 |
1182
|
74 TAGS:: $(SOURCES) |
4
|
75 etags $(SOURCES) |
|
76 |
5276
|
77 clean distclean maintainer-clean:: |
4098
|
78 rm -f gethelp$(BUILD_EXEEXT) |
3601
|
79 |
5276
|
80 distclean maintainer-clean:: |
4710
|
81 rm -f Makefile config.log config.status DOCSTRINGS |
5527
|
82 rm -rf autom4te.cache |
4
|
83 |
2392
|
84 maintainer-clean:: |
4440
|
85 rm -f tags TAGS configure |
4
|
86 |
|
87 dist: |
2642
|
88 ln $(DISTFILES) ../`cat ../.fname`/scripts |
3297
|
89 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/scripts/$$dir; $(MAKE) -C $$dir $@; done |
4
|
90 .PHONY: dist |