Mercurial > octave
annotate scripts/module.mk @ 25718:a3448e97ccc8
new scripts/legacy directory for Matlab functions that refuse to die
* isstr.m, setstr.m: Move to scripts/legacy from scripts/deprecated.
Change warning to use new Octave:legacy-function warning ID.
* scripts/deprecated/module.mk, scripts/legacy/module.mk,
scripts/module.mk: Uppdate.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 01 Aug 2018 13:55:22 -0400 |
parents | fdc9ce839afd |
children | 750a6f9957ea |
rev | line source |
---|---|
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
1 %canon_reldir%_EXTRA_DIST = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
2 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
3 %canon_reldir%_CLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
4 %canon_reldir%_DISTCLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
5 %canon_reldir%_MAINTAINERCLEANFILES = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
6 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
7 include %reldir%/+containers/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
8 include %reldir%/audio/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
9 include %reldir%/deprecated/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
10 include %reldir%/elfun/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
11 include %reldir%/general/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
12 include %reldir%/geometry/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
13 include %reldir%/gui/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
14 include %reldir%/help/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
15 include %reldir%/image/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
16 include %reldir%/io/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
17 include %reldir%/java/module.mk |
25718
a3448e97ccc8
new scripts/legacy directory for Matlab functions that refuse to die
John W. Eaton <jwe@octave.org>
parents:
24547
diff
changeset
|
18 include %reldir%/legacy/module.mk |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
19 include %reldir%/linear-algebra/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
20 include %reldir%/miscellaneous/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
21 include %reldir%/ode/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
22 include %reldir%/optimization/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
23 include %reldir%/path/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
24 include %reldir%/pkg/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
25 include %reldir%/plot/appearance/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
26 include %reldir%/plot/draw/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
27 include %reldir%/plot/util/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
28 include %reldir%/polynomial/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
29 include %reldir%/prefs/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
30 include %reldir%/profiler/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
31 include %reldir%/set/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
32 include %reldir%/signal/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
33 include %reldir%/sparse/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
34 include %reldir%/specfun/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
35 include %reldir%/special-matrix/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
36 include %reldir%/startup/module.mk |
24547
fdc9ce839afd
maint: Remove statistics functions which have been shifted to Octave Forge package.
Rik <rik@octave.org>
parents:
23709
diff
changeset
|
37 include %reldir%/statistics/module.mk |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
38 include %reldir%/strings/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
39 include %reldir%/testfun/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
40 include %reldir%/time/module.mk |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
42 ## include %reldir%/@ftp/module.mk |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
43 ## The include above fails because Automake cannot process the '@' character. |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
44 ## As a work around, the contents of %reldir%/@ftp/module.mk are placed directly |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
45 ## in this module.mk file. |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
46 %canon_reldir%_EXTRA_DIST += %reldir%/@ftp/module.mk |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
47 ######################## include %reldir%/@ftp/module.mk ######################## |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
48 FCN_FILE_DIRS += %reldir%/@ftp |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
49 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
50 %canon_reldir%_@ftp_FCN_FILES = \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
51 %reldir%/@ftp/ascii.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
52 %reldir%/@ftp/binary.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
53 %reldir%/@ftp/cd.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
54 %reldir%/@ftp/close.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
55 %reldir%/@ftp/delete.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
56 %reldir%/@ftp/dir.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
57 %reldir%/@ftp/disp.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
58 %reldir%/@ftp/ftp.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
59 %reldir%/@ftp/loadobj.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
60 %reldir%/@ftp/mget.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
61 %reldir%/@ftp/mkdir.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
62 %reldir%/@ftp/mput.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
63 %reldir%/@ftp/rename.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
64 %reldir%/@ftp/rmdir.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
65 %reldir%/@ftp/saveobj.m |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
66 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
67 %canon_reldir%_@ftpdir = $(fcnfiledir)/@ftp |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
68 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
69 %canon_reldir%_@ftp_DATA = $(%canon_reldir%_@ftp_FCN_FILES) |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
70 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
71 FCN_FILES += $(%canon_reldir%_@ftp_FCN_FILES) |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
72 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
73 PKG_ADD_FILES += %reldir%/@ftp/PKG_ADD |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
74 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
75 DIRSTAMP_FILES += %reldir%/@ftp/$(octave_dirstamp) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
76 ####################### end include %reldir%/@ftp/module.mk ##################### |
21093
0ebb8e26ebbc
build: Document Automake failure to 'include scripts/@ftp/module.mk'.
Rik <rik@octave.org>
parents:
21092
diff
changeset
|
77 |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
78 image_DATA += $(SCRIPTS_IMAGES) |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
79 |
21959
627f582edbe3
extract documentation from .in.m files instead of generated .m files
John W. Eaton <jwe@octave.org>
parents:
21879
diff
changeset
|
80 GEN_FCN_FILES_IN = $(GEN_FCN_FILES:.m=.in.m) |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 ALL_LOCAL_TARGETS += \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 $(JAR_FILES) |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 |
21879
1315aa0ca466
build: Ensure gnuplot_binary.m is generated before building docs (bug #48202)
Mike Miller <mtmiller@octave.org>
parents:
21766
diff
changeset
|
85 OCTAVE_INTERPRETER_TARGETS += \ |
22075
7a4897e07727
build: ensure all files needed to run octave in build dir are declared
Mike Miller <mtmiller@octave.org>
parents:
22074
diff
changeset
|
86 $(GEN_FCN_FILES) \ |
7a4897e07727
build: ensure all files needed to run octave in build dir are declared
Mike Miller <mtmiller@octave.org>
parents:
22074
diff
changeset
|
87 $(PKG_ADD_FILES) |
21879
1315aa0ca466
build: Ensure gnuplot_binary.m is generated before building docs (bug #48202)
Mike Miller <mtmiller@octave.org>
parents:
21766
diff
changeset
|
88 |
23572
0703d31e1ec0
new script for updating test status for fixed bugs
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
89 FCN_FILES_WITH_TESTS = $(shell $(SHELL) $(srcdir)/build-aux/find-files-with-tests.sh "$(srcdir)" $(FCN_FILES) $(GEN_FCN_FILES_IN)) |
0703d31e1ec0
new script for updating test status for fixed bugs
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
90 |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
91 define PKG_ADD_FILE_TEMPLATE |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23572
diff
changeset
|
92 $(1)/PKG_ADD: $$($(2)_FCN_FILES) $$($(2)_GEN_FCN_FILES) $(1)/$(octave_dirstamp) %reldir%/mk-pkg-add.sh |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 $$(AM_V_GEN)rm -f $$@-t $$@ && \ |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23572
diff
changeset
|
94 $$(SHELL) $$(srcdir)/%reldir%/mk-pkg-add.sh $(srcdir) $$($(2)_FCN_FILES) -- $$($(2)_GEN_FCN_FILES) > $$@-t && \ |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 mv $$@-t $$@ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 endef |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
97 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
98 $(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
|
99 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
100 define GEN_FCN_FILES_TEMPLATE |
21959
627f582edbe3
extract documentation from .in.m files instead of generated .m files
John W. Eaton <jwe@octave.org>
parents:
21879
diff
changeset
|
101 $(1): $(1:.m=.in.m) build-aux/subst-config-vals.sh $(dir $(1))$(octave_dirstamp) |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21388
diff
changeset
|
102 $$(AM_V_GEN)$$(call simple-filter-rule,build-aux/subst-config-vals.sh) |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 endef |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 $(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
|
106 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
107 DOCSTRING_FILES += %reldir%/DOCSTRINGS |
20393
0fbe2e28ea84
build: Avoid triggering rebuild of docs when DOCSTRINGS regenerated (bug #45567)
Mike Miller <mtmiller@octave.org>
parents:
20366
diff
changeset
|
108 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
109 %reldir%/DOCSTRINGS: $(FCN_FILES) $(GEN_FCN_FILES_IN) | %reldir%/$(octave_dirstamp) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
110 $(AM_V_GEN)rm -f %reldir%/DOCSTRINGS-t && \ |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23572
diff
changeset
|
111 $(PERL) $(srcdir)/%reldir%/mk-doc.pl "$(srcdir)" $(FCN_FILES) $(GEN_FCN_FILES_IN) > %reldir%/DOCSTRINGS-t && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
112 $(call move_if_change_rule,%reldir%/DOCSTRINGS-t,$@) |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
114 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp) |
22074
5a0eea960bdb
build: fix typo of $(octave_dirstamp) in build prerequisites
Mike Miller <mtmiller@octave.org>
parents:
22067
diff
changeset
|
115 |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
116 check-m-sources: |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
117 @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
|
118 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
|
119 found=false; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
120 for m in $(FCN_FILES) $(GEN_FCN_FILES); do \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
121 if [ "$$f" = $(srcdir)/%reldir%/"$$m" ]; then \ |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 found=true; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
123 break; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
124 fi; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
125 done; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
126 if $$found; then \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
127 true; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
128 else \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
129 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
|
130 echo "$$missing: not listed in SOURCES"; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
131 fi; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
132 done; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
133 if test -z "$$missing"; then \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
134 echo "yes"; \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
135 fi |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
136 .PHONY: check-m-sources |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
137 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
138 check-missing-semicolon: |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
139 @echo "checking for missing semicolons in .m files..." |
21385
89fa0694aa2e
Fix check-missing-semicolon QA target (bug #47277).
Rik <rik@octave.org>
parents:
21347
diff
changeset
|
140 @( echo "warning on Octave:missing-semicolon;"; \ |
89fa0694aa2e
Fix check-missing-semicolon QA target (bug #47277).
Rik <rik@octave.org>
parents:
21347
diff
changeset
|
141 for m in $(addprefix $(srcdir)/, $(FCN_FILES)) $(GEN_FCN_FILES); do \ |
89fa0694aa2e
Fix check-missing-semicolon QA target (bug #47277).
Rik <rik@octave.org>
parents:
21347
diff
changeset
|
142 ! $(GREP) -q -E '^classdef' $$m || continue; \ |
89fa0694aa2e
Fix check-missing-semicolon QA target (bug #47277).
Rik <rik@octave.org>
parents:
21347
diff
changeset
|
143 ! $(GREP) -q -E '^ *\<function\>' $$m || continue; \ |
89fa0694aa2e
Fix check-missing-semicolon QA target (bug #47277).
Rik <rik@octave.org>
parents:
21347
diff
changeset
|
144 ! (echo $$m | $(GREP) -q __splinefit__.m) || continue; \ |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
145 echo "source ('$$m');"; \ |
21347
2f9de06a526e
maint: Clean up calls to run-octave in build system
Mike Miller <mtmiller@octave.org>
parents:
21290
diff
changeset
|
146 done ) | $(SHELL) run-octave --norc --silent --no-history |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
147 .PHONY: check-missing-semicolon |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
148 |
21388
b9cb3a96849a
build: Calculate ctags for m-files as well as C/C++/Fortran sources (bug #47317).
Rik <rik@octave.org>
parents:
21385
diff
changeset
|
149 ## Include m-files in list of sources when building tag files. |
b9cb3a96849a
build: Calculate ctags for m-files as well as C/C++/Fortran sources (bug #47317).
Rik <rik@octave.org>
parents:
21385
diff
changeset
|
150 ## Automake will not include these because there is no xxx_SOURCES target |
b9cb3a96849a
build: Calculate ctags for m-files as well as C/C++/Fortran sources (bug #47317).
Rik <rik@octave.org>
parents:
21385
diff
changeset
|
151 TAGS_DEPENDENCIES = $(addprefix $(srcdir)/, $(FCN_FILES)) $(GEN_FCN_FILES) |
b9cb3a96849a
build: Calculate ctags for m-files as well as C/C++/Fortran sources (bug #47317).
Rik <rik@octave.org>
parents:
21385
diff
changeset
|
152 TAGS_FILES = $(addprefix $(srcdir)/, $(FCN_FILES)) $(GEN_FCN_FILES) |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
153 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
154 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
|
155 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
156 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
|
157 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
158 install-pkg-add: |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
159 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
|
160 if [ -n "`cat $$f`" ]; then \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
161 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \ |
20355
e365a34a1c5c
Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents:
20343
diff
changeset
|
162 $(MKDIR_P) $(DESTDIR)$(fcnfiledir)/`echo $$base | $(SED) 's,/[^/]*$$,,'`; \ |
e365a34a1c5c
Fix more installation discrepancies in scripts directory
Mike Miller <mtmiller@octave.org>
parents:
20343
diff
changeset
|
163 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$$base; \ |
20328
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 done |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
166 .PHONY: install-pkg-add |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
167 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
168 uninstall-pkg-add: |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
169 for f in $(PKG_ADD_FILES); do \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
170 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \ |
20364
806a762111d9
Fix uninstallation of PKG_ADD files
Mike Miller <mtmiller@octave.org>
parents:
20361
diff
changeset
|
171 rm -f $(DESTDIR)$(fcnfiledir)/$$base; \ |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
172 done |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
173 .PHONY: uninstall-pkg-add |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
174 |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
175 if AMCOND_HAVE_JAVA |
20340
22a2f6a7f6dc
* scripts/module.mk (scripts-dist-hook): Always define.
John W. Eaton <jwe@octave.org>
parents:
20333
diff
changeset
|
176 scripts-dist-hook: |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
177 else |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
178 scripts-dist-hook: |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
179 @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
|
180 endif |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
181 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
182 %canon_reldir%_EXTRA_DIST += \ |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
183 $(SCRIPTS_IMAGES) \ |
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
184 $(FCN_FILES) \ |
20361
bf92a14c0e76
don't include GEN_FCN_FILES in FCN_FILES list
John W. Eaton <jwe@octave.org>
parents:
20355
diff
changeset
|
185 $(GEN_FCN_FILES_IN) \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
186 %reldir%/DOCSTRINGS \ |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23572
diff
changeset
|
187 %reldir%/mk-doc.pl \ |
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23572
diff
changeset
|
188 %reldir%/mk-pkg-add.sh |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
189 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
190 EXTRA_DIST += $(%canon_reldir%_EXTRA_DIST) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
191 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
192 %canon_reldir%_CLEANFILES += \ |
22024
659731a4563f
build: delete generated files, keep distributed files on clean and distclean (bug #45646)
Mike Miller <mtmiller@octave.org>
parents:
22015
diff
changeset
|
193 $(GEN_FCN_FILES) \ |
22015
cb25e0da9541
build: clean all PKG_ADD, *.oct, and *-tst files on 'make clean'
Mike Miller <mtmiller@octave.org>
parents:
21971
diff
changeset
|
194 $(PKG_ADD_FILES) |
cb25e0da9541
build: clean all PKG_ADD, *.oct, and *-tst files on 'make clean'
Mike Miller <mtmiller@octave.org>
parents:
21971
diff
changeset
|
195 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
196 %canon_reldir%_DISTCLEANFILES += \ |
22024
659731a4563f
build: delete generated files, keep distributed files on clean and distclean (bug #45646)
Mike Miller <mtmiller@octave.org>
parents:
22015
diff
changeset
|
197 $(DIRSTAMP_FILES) |
20328
fa9fa6ab76f0
eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
198 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
199 %canon_reldir%_MAINTAINERCLEANFILES += \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
200 %reldir%/DOCSTRINGS |
20409
4300fe896004
build: Don't remove built documentation for distclean target (bug #45646).
Rik <rik@octave.org>
parents:
20393
diff
changeset
|
201 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
202 CLEANFILES += $(%canon_reldir%_CLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
203 DISTCLEANFILES += $(%canon_reldir%_DISTCLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
204 MAINTAINERCLEANFILES += $(%canon_reldir%_MAINTAINERCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
205 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
206 scripts-clean: |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
207 rm -f $(%canon_reldir%_CLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
208 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
209 scripts-distclean: scripts-clean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
210 rm -f $(%canon_reldir%_DISTCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
211 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20364
diff
changeset
|
212 scripts-maintainer-clean: scripts-distclean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23348
diff
changeset
|
213 rm -f $(%canon_reldir%_MAINTAINERCLEANFILES) |