annotate scripts/module.mk @ 20396:bf92a14c0e76

don't include GEN_FCN_FILES in FCN_FILES list * scripts/module.mk (GEN_FCN_FILES_IN): Rename from FCN_FILES_IN. * scripts/plot/util/module.mk (FCN_FILES, EXTRA_DIST): Remove $(GEN_FCN_FILES) from the lists.
author John W. Eaton <jwe@octave.org>
date Thu, 16 Jul 2015 13:49:51 -0400
parents e365a34a1c5c
children 806a762111d9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 ## FIXME -- including scripts/@ftp/module.mk fails. Is that an automake bug?
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 FCN_FILE_DIRS += scripts/@ftp
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 scripts_@ftp_FCN_FILES = \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 scripts/@ftp/ascii.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 scripts/@ftp/binary.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 scripts/@ftp/cd.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 scripts/@ftp/close.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 scripts/@ftp/delete.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 scripts/@ftp/dir.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 scripts/@ftp/display.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 scripts/@ftp/ftp.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 scripts/@ftp/loadobj.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 scripts/@ftp/mget.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 scripts/@ftp/mkdir.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 scripts/@ftp/mput.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 scripts/@ftp/rename.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 scripts/@ftp/rmdir.m \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 scripts/@ftp/saveobj.m
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21
20390
e365a34a1c5c Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents: 20378
diff changeset
22 scripts_@ftpdir = $(fcnfiledir)/@ftp
20378
916cc788d906 fix installation of script files
John W. Eaton <jwe@octave.org>
parents: 20375
diff changeset
23
916cc788d906 fix installation of script files
John W. Eaton <jwe@octave.org>
parents: 20375
diff changeset
24 scripts_@ftp_DATA = $(scripts_@ftp_FCN_FILES)
916cc788d906 fix installation of script files
John W. Eaton <jwe@octave.org>
parents: 20375
diff changeset
25
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 FCN_FILES += $(scripts_@ftp_FCN_FILES)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 PKG_ADD_FILES += scripts/@ftp/PKG_ADD
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 DIRSTAMP_FILES += scripts/@ftp/$(octave_dirstamp)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 include scripts/audio/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 include scripts/deprecated/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 include scripts/elfun/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 include scripts/general/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 include scripts/geometry/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 include scripts/gui/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 include scripts/help/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 include scripts/image/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 include scripts/io/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 include scripts/java/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 include scripts/linear-algebra/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 include scripts/miscellaneous/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 include scripts/optimization/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 include scripts/path/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 include scripts/pkg/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 include scripts/plot/appearance/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 include scripts/plot/draw/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 include scripts/plot/util/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 include scripts/polynomial/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 include scripts/prefs/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 include scripts/set/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 include scripts/signal/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 include scripts/sparse/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 include scripts/specfun/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 include scripts/special-matrix/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 include scripts/startup/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 include scripts/statistics/base/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 include scripts/statistics/distributions/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 include scripts/statistics/models/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 include scripts/statistics/tests/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 include scripts/strings/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 include scripts/testfun/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 include scripts/time/module.mk
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 image_DATA += $(SCRIPTS_IMAGES)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67
20396
bf92a14c0e76 don't include GEN_FCN_FILES in FCN_FILES list
John W. Eaton <jwe@octave.org>
parents: 20390
diff changeset
68 GEN_FCN_FILES_IN = $(GEN_FCN_FILES:.m=.in)
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 ALL_LOCAL_TARGETS += \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 $(GEN_FCN_FILES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72 $(PKG_ADD_FILES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 $(JAR_FILES)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 if AMCOND_BUILD_DOCS
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 ALL_LOCAL_TARGETS += scripts/.DOCSTRINGS
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 endif
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 define PKG_ADD_FILE_TEMPLATE
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 $(1)/PKG_ADD: $$($(2)_FCN_FILES) $$($(2)_GEN_FCN_FILES) $(1)/$(octave_dirstamp) scripts/mk-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 $$(AM_V_GEN)rm -f $$@-t $$@ && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 $$(srcdir)/scripts/mk-pkg-add $(srcdir) $$($(2)_FCN_FILES) -- $$($(2)_GEN_FCN_FILES) > $$@-t && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83 mv $$@-t $$@
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
84 endef
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 $(foreach d, $(FCN_FILE_DIRS), $(eval $(call PKG_ADD_FILE_TEMPLATE, $(d),$(subst /,_,$(subst -,_,$(d))))))
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 define GEN_FCN_FILES_TEMPLATE
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 $(1): $(1:.m=.in) Makefile $(dir $(1))$(octave_dirstamp)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 $$(AM_V_GEN)$$(do_subst_config_vals)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91 endef
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 $(foreach f, $(GEN_FCN_FILES), $(eval $(call GEN_FCN_FILES_TEMPLATE, $(f))))
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 if AMCOND_BUILD_DOCS
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 scripts/.DOCSTRINGS: $(FCN_FILES) $(GEN_FCN_FILES) scripts/mkdoc.pl Makefile
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 $(AM_V_GEN)rm -f $@-t $@ && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/scripts/DOCSTRINGS ] && [ ! -f scripts/DOCSTRINGS ]; then \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 cp $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 touch -r $(srcdir)/scripts/DOCSTRINGS scripts/DOCSTRINGS; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 fi && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 $(PERL) $(srcdir)/scripts/mkdoc.pl "$(srcdir)" $(FCN_FILES) -- $(GEN_FCN_FILES) > $@-t && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 mv $@-t $@ && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 $(top_srcdir)/build-aux/move-if-change $@ scripts/DOCSTRINGS && \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 touch $@
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 OCTAVE_INTERPRETER_TARGETS += \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 scripts/.DOCSTRINGS
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 endif
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 check-m-sources:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114 @echo "checking whether files in source tree are listed in module.mk files..."; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115 for f in $$(find $(srcdir)/scripts -name '*.m'); do \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 found=false; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 for m in $(FCN_FILES) $(GEN_FCN_FILES); do \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 if [ "$$f" = $(srcdir)/scripts/"$$m" ]; then \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119 found=true; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
120 break; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 fi; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 done; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 if $$found; then \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124 true; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 else \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126 missing=$$(echo $$f | $(SED) "s|^$(srcdir)/scripts||"); \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127 echo "$$missing: not listed in SOURCES"; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128 fi; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129 done; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
130 if test -z "$$missing"; then \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
131 echo "yes"; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132 fi
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 .PHONY: check-m-sources
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135 check-missing-semicolon:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136 @echo "checking for missing semicolons in .m files..."
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 ( echo "warning on Octave:missing-semicolon;"; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138 for m in $(addprefix $(srcdir), $(FCN_FILES)) $(GEN_FCN_FILES); do \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 echo "source ('$$m');"; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140 done ) | ../run-octave -qf
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 .PHONY: check-missing-semicolon
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 ## Add rule to generate ctags.
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 ## Automake would normally generate such a rule, but only if there is a
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 ## xxx_SOURCES target
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 ctags:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 ctags $(addprefix $(srcdir)/, $(FCN_FILES)) $(GEN_FCN_FILES)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 install-data-local: install-startup-files install-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 uninstall-local: uninstall-startup-files uninstall-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 install-startup-files:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 $(MKDIR_P) $(DESTDIR)$(fcnfiledir)/startup
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155 if test -f $(DESTDIR)$(fcnfiledir)/startup/octaverc; then true; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 else \
20368
23172e987766 Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents: 20363
diff changeset
157 $(INSTALL_DATA) $(srcdir)/$(SYSTEM_STARTUP_FILE_SRC) \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
158 $(DESTDIR)$(fcnfiledir)/startup/octaverc; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
159 fi
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160 if test -f $(DESTDIR)$(fcnfiledir)/startup/inputrc; then true; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 else \
20368
23172e987766 Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents: 20363
diff changeset
162 $(INSTALL_DATA) $(srcdir)/$(SYSTEM_INPUTRC_FILE_SRC) \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 $(DESTDIR)$(fcnfiledir)/startup/inputrc; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 fi
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 $(MKDIR_P) $(DESTDIR)$(localfcnfiledir)/startup
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166 if test -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 then true; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168 else \
20368
23172e987766 Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents: 20363
diff changeset
169 $(INSTALL_DATA) $(srcdir)/$(LOCAL_STARTUP_FILE_SRC) \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 $(DESTDIR)$(localfcnfiledir)/startup/octaverc; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 fi
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172 .PHONY: install-startup-files
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 uninstall-startup-files:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 rm -f $(DESTDIR)$(fcnfiledir)/startup/octaverc
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 rm -f $(DESTDIR)$(fcnfiledir)/startup/inputrc
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177 rm -f $(DESTDIR)$(localfcnfiledir)/startup/octaverc
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178 .PHONY: uninstall-startup-files
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 install-pkg-add:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 for f in $(PKG_ADD_FILES); do \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 if [ -n "`cat $$f`" ]; then \
20390
e365a34a1c5c Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents: 20378
diff changeset
183 base=`echo $$f | $(SED) 's,^scripts/,,'`; \
e365a34a1c5c Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents: 20378
diff changeset
184 $(MKDIR_P) $(DESTDIR)$(fcnfiledir)/`echo $$base | $(SED) 's,/[^/]*$$,,'`; \
e365a34a1c5c Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents: 20378
diff changeset
185 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$$base; \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186 fi \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
187 done
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188 .PHONY: install-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190 uninstall-pkg-add:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191 for f in $(PKG_ADD_FILES); do \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
192 rm -f $(DESTDIR)$(fcnfiledir)/$$f; \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193 done
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 .PHONY: uninstall-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
195
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
196 if AMCOND_HAVE_JAVA
20375
22a2f6a7f6dc * scripts/module.mk (scripts-dist-hook): Always define.
John W. Eaton <jwe@octave.org>
parents: 20368
diff changeset
197 scripts-dist-hook:
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
198 else
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
199 scripts-dist-hook:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
200 @echo "Packaging distribution requires Java." ; exit 1;
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
201 endif
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 EXTRA_DIST += \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204 $(SCRIPTS_IMAGES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
205 $(FCN_FILES) \
20396
bf92a14c0e76 don't include GEN_FCN_FILES in FCN_FILES list
John W. Eaton <jwe@octave.org>
parents: 20390
diff changeset
206 $(GEN_FCN_FILES_IN) \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207 scripts/DOCSTRINGS \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208 scripts/mkdoc.pl \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 scripts/mk-pkg-add
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211 DISTCLEANFILES += \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 scripts/.DOCSTRINGS \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213 scripts/DOCSTRINGS \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 $(PKG_ADD_FILES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215 $(DIRSTAMP_FILES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216 $(GEN_FCN_FILES)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
217
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 scripts-distclean:
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 if [ "x$(srcdir)" != "x." ]; then \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220 rm -f $(java_JAVA_IMAGES); \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221 fi