annotate doc/module.mk @ 20401:9b44691a3520

provide per-directory clean targets * Makefile.am, doc/module.mk, libgui/graphics/module.mk, libgui/module.mk, libgui/qterminal-module.mk, libgui/src/module.mk, libinterp/corefcn/module.mk, libinterp/module.mk, libinterp/octave-value/module.mk, libinterp/operators/module.mk, libinterp/parse-tree/module.mk, libinterp/template-inst/module.mk, liboctave/array/module.mk, liboctave/cruft/Faddeeva/module.mk, liboctave/cruft/amos/module.mk, liboctave/cruft/blas-xtra/module.mk, liboctave/cruft/daspk/module.mk, liboctave/cruft/dasrt/module.mk, liboctave/cruft/dassl/module.mk, liboctave/cruft/fftpack/module.mk, liboctave/cruft/lapack-xtra/module.mk, liboctave/cruft/misc/module.mk, liboctave/cruft/module.mk, liboctave/cruft/odepack/module.mk, liboctave/cruft/ordered-qz/module.mk, liboctave/cruft/quadpack/module.mk, liboctave/cruft/ranlib/module.mk, liboctave/cruft/slatec-err/module.mk, liboctave/cruft/slatec-fn/module.mk, liboctave/module.mk, liboctave/numeric/module.mk, liboctave/operators/module.mk, liboctave/system/module.mk, liboctave/util/module.mk, scripts/java/module.mk, scripts/module.mk, scripts/startup/module.mk, src/module.mk: For each major subdirectory tree (liboctave, libinterp, libgui, src, doc, examples, test), provide SUBDIR-clean, SUBDIR-distclean, and SUBDIR-maintainer-clean targets.
author John W. Eaton <jwe@octave.org>
date Fri, 17 Jul 2015 14:44:47 -0400
parents fb97c11f8e67
children 6b7c10920dfe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
1 doc_EXTRA_DIST =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
2
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
3 doc_CLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
4 doc_DISTCLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
5 doc_MAINTAINERCLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
6
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 TEXINFO_TEX = doc/texinfo.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 TEXINPUTS := $(PATH_SEPARATOR)$(top_srcdir)/doc/interpreter$(PATH_SEPARATOR)$(PATH_SEPARATOR)$(top_builddir)/doc/interpreter$(PATH_SEPARATOR)$(TEXINPUTS)$(PATH_SEPARATOR)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 TEXMFCNF := $(PATH_SEPARATOR)$(top_srcdir)/doc$(PATH_SEPARATOR)$(top_builddir)/doc$(PATH_SEPARATOR)$(TEXMFCNF)$(PATH_SEPARATOR)
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
12
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
13 export TEXINPUTS
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 export TEXMFCNF
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 DVIPS = dvips
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 TEX = tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 PDFTEX = pdftex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 AM_V_TEX = $(am__v_TEX_$(V))
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 am__v_TEX_ = $(am__v_TEX_$(AM_DEFAULT_VERBOSITY))
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 am__v_TEX_0 = @echo " TEX " $@;
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 am__v_TEX_1 =
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 AM_V_PDFTEX = $(am__v_PDFTEX_$(V))
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 am__v_PDFTEX_ = $(am__v_PDFTEX_$(AM_DEFAULT_VERBOSITY))
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 am__v_PDFTEX_0 = @echo " PDFTEX " $@;
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 am__v_PDFTEX_1 =
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 if AMCOND_BUILD_DOCS
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 ## Listing "dvi" explicitly here seems to cause two simultaneous
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 ## builds of the DVI files, presumably because the PS version
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 ## also depends on the DVI file and somehow the rules are invoked
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 ## twice. Is that a bug in automake or make or what?
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
37 doc_EXTRA_DIST += \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 doc/texinfo.tex \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 doc/texmf.cnf
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
41 doc_EXTRA_DIST += \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 doc/doxyhtml/Doxyfile.in \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 doc/doxyhtml/README
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44
20383
4847e3dd8e6a fix file and directory names for doxyhtml targets
John W. Eaton <jwe@octave.org>
parents: 20382
diff changeset
45 doxyhtml: doc/doxyhtml/$(octave_dirstamp)
4847e3dd8e6a fix file and directory names for doxyhtml targets
John W. Eaton <jwe@octave.org>
parents: 20382
diff changeset
46 doxygen doc/doxyhtml/Doxyfile
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 doxyhtml-maintainer-clean:
20384
83d08eb76182 * doc/module.mk (doxyhtml-maintainer-clean): Also remove .db file.
John W. Eaton <jwe@octave.org>
parents: 20383
diff changeset
49 rm -f doc/doxygen_sqlite3.db
20386
d59d9f4ec290 don't clean doc/doxyhtml/README
John W. Eaton <jwe@octave.org>
parents: 20385
diff changeset
50 cd doc/doxyhtml && \
d59d9f4ec290 don't clean doc/doxyhtml/README
John W. Eaton <jwe@octave.org>
parents: 20385
diff changeset
51 rm -rf `ls | $(GREP) -v Doxyfile.in | $(GREP) -v README`
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52
20383
4847e3dd8e6a fix file and directory names for doxyhtml targets
John W. Eaton <jwe@octave.org>
parents: 20382
diff changeset
53 DIRSTAMP_FILES += doc/doxyhtml/$(octave_dirstamp)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 GRAPH_PROP_TEXI_SRC = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 doc/interpreter/plot-axesproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 doc/interpreter/plot-figureproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 doc/interpreter/plot-imageproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 doc/interpreter/plot-lineproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 doc/interpreter/plot-patchproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 doc/interpreter/plot-rootproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 doc/interpreter/plot-surfaceproperties.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 doc/interpreter/plot-textproperties.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
65 $(GRAPH_PROP_TEXI_SRC): $(OCTAVE_INTERPRETER_TARGETS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
66
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 define gen-propdoc-texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 $(top_builddir)/run-octave -f -q -H -p $(srcdir)/doc/interpreter --eval "genpropdoc ('$(1)');" > $@-t && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 endef
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 doc/interpreter/plot-axesproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74 $(AM_V_GEN)$(call gen-propdoc-texi,axes)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 doc/interpreter/plot-figureproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 $(AM_V_GEN)$(call gen-propdoc-texi,figure)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 doc/interpreter/plot-imageproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 $(AM_V_GEN)$(call gen-propdoc-texi,image)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 doc/interpreter/plot-lineproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83 $(AM_V_GEN)$(call gen-propdoc-texi,line)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
84
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85 doc/interpreter/plot-patchproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 $(AM_V_GEN)$(call gen-propdoc-texi,patch)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 doc/interpreter/plot-rootproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 $(AM_V_GEN)$(call gen-propdoc-texi,root)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91 doc/interpreter/plot-surfaceproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 $(AM_V_GEN)$(call gen-propdoc-texi,surface)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 doc/interpreter/plot-textproperties.texi: doc/interpreter/genpropdoc.m
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 $(AM_V_GEN)$(call gen-propdoc-texi,text)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 dist_man_MANS = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 doc/interpreter/mkoctfile.1 \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 doc/interpreter/octave-cli.1 \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 doc/interpreter/octave-config.1 \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 doc/interpreter/octave.1
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
103 DOC_JAVA_IMAGES = \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 doc/interpreter/java-images/image001.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 doc/interpreter/java-images/image002.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 doc/interpreter/java-images/image003.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 doc/interpreter/java-images/image004.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 doc/interpreter/java-images/image005.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 doc/interpreter/java-images/image006.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 doc/interpreter/java-images/image007.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 doc/interpreter/java-images/image008.png \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 doc/interpreter/java-images/image009.png
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113
20380
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
114 BUILT_DOC_IMAGES += \
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
115 $(BUILT_DOC_IMAGES_EPS) \
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
116 $(BUILT_DOC_IMAGES_PDF) \
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
117 $(BUILT_DOC_IMAGES_PNG) \
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
118 $(BUILT_DOC_IMAGES_TXT)
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
119
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
120 DOC_IMAGES_EPS += $(BUILT_DOC_IMAGES_EPS)
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
121 DOC_IMAGES_PDF += $(BUILT_DOC_IMAGES_PDF)
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
122 DOC_IMAGES_PNG += $(BUILT_DOC_IMAGES_PNG)
10f67e9d1e70 keep list of built images separate from other images
John W. Eaton <jwe@octave.org>
parents: 20377
diff changeset
123 DOC_IMAGES_TXT += $(BUILT_DOC_IMAGES_TXT)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
125 DOC_IMAGES += \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
126 $(BUILT_DOC_IMAGES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
127 $(DOC_JAVA_IMAGES)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
129 $(BUILT_DOC_IMAGES): $(OCTAVE_INTERPRETER_TARGETS)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
130
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
131 ## FIXME: DOC_JAVA_IMAGES will eventually need to be added to the HTML build.
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132 ## It will require a different Makefile rule later because
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
133 ## DOC_JAVA_IMAGES live in a subdir rather than in the current directory.
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
135 HTMLDIR_IMAGES = $(patsubst doc/interpreter/%.png, doc/interpreter/octave.html/%.png, $(DOC_IMAGES_PNG))
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 LOGOS = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138 doc/interpreter/octave_logo.eps \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 doc/interpreter/octave_logo.pdf
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
141 DOC_IMAGES_EPS += doc/interpreter/octave_logo.eps
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
142 DOC_IMAGES_PDF += doc/interpreter/octave_logo.pdf
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 MUNGED_TEXI_SRC = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 doc/interpreter/arith.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 doc/interpreter/audio.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 doc/interpreter/basics.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148 doc/interpreter/bugs.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 doc/interpreter/container.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150 doc/interpreter/contrib.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 doc/interpreter/cp-idx.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 doc/interpreter/data.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 doc/interpreter/debug.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 doc/interpreter/diffeq.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155 doc/interpreter/diagperm.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 doc/interpreter/external.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
157 doc/interpreter/emacs.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
158 doc/interpreter/errors.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
159 doc/interpreter/eval.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160 doc/interpreter/expr.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 doc/interpreter/fn-idx.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162 doc/interpreter/func.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 doc/interpreter/geometry.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 doc/interpreter/gui.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 doc/interpreter/gpl.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166 doc/interpreter/grammar.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 doc/interpreter/image.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168 doc/interpreter/install.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 doc/interpreter/interp.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 doc/interpreter/intro.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 doc/interpreter/io.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172 doc/interpreter/java.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 doc/interpreter/linalg.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 doc/interpreter/matrix.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 doc/interpreter/nonlin.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 doc/interpreter/numbers.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177 doc/interpreter/obsolete.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178 doc/interpreter/oop.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179 doc/interpreter/op-idx.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 doc/interpreter/optim.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 doc/interpreter/package.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 doc/interpreter/plot.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183 doc/interpreter/poly.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
184 doc/interpreter/preface.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
185 doc/interpreter/quad.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186 doc/interpreter/set.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
187 doc/interpreter/signal.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188 doc/interpreter/sparse.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 doc/interpreter/stats.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190 doc/interpreter/stmt.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191 doc/interpreter/strings.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
192 doc/interpreter/system.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193 doc/interpreter/testfun.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 doc/interpreter/tips.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
195 doc/interpreter/var.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
196 doc/interpreter/vectorize.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
197
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
198 TXI_SRC = $(MUNGED_TEXI_SRC:.texi=.txi)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
199
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
200 BUILT_OCTAVE_TEXI_SRC = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
201 doc/interpreter/contributors.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202 $(GRAPH_PROP_TEXI_SRC) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 $(MUNGED_TEXI_SRC)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
205 info_TEXINFOS += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
206 doc/interpreter/octave.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208 ## The $(examples_code_SRC) files are included here because
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 ## they are included in the manual via the @EXAMPLEFILE macro,
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210 ## so they are dependencies for the documentation.
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 octave_TEXINFOS = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213 $(BUILT_OCTAVE_TEXI_SRC) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 $(examples_code_SRC)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216 ## As of version 1.14.1, automake does not seem to generate
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
217 ## rules for DVI, PDF, or HTML output that work for us when
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 ## there are additional dependencies, so we include our own
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 ## versions of the rules here.
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
221 OCTAVE_HTML_DIR = doc/interpreter/octave.html
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
222 OCTAVE_HTML_TMP_DIR = $(OCTAVE_HTML_DIR:.html=.htp)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
223 OCTAVE_HTML_STAMP = $(OCTAVE_HTML_DIR)/.html-stamp
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
224
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
225 $(srcdir)/doc/interpreter/octave.info: $(DOC_IMAGES_TXT) $(octave_TEXINFOS)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
226 doc/interpreter/octave.dvi: $(DOC_IMAGES_EPS) $(octave_TEXINFOS)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
227 doc/interpreter/octave.pdf: $(DOC_IMAGES_PDF) $(octave_TEXINFOS)
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
228 $(OCTAVE_HTML_STAMP): $(DOC_IMAGES_PNG) $(octave_TEXINFOS)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
229
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
230 $(srcdir)/doc/interpreter/octave.info: doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
231 $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
232 am__cwd=`pwd` && $(am__cd) $(srcdir) && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233 rm -rf $$backupdir && mkdir $$backupdir && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
234 if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
235 for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
236 if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
237 done; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
238 else :; fi && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
239 cd "$$am__cwd"; \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
240 if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
241 -o $@ $(srcdir)/doc/interpreter/octave.texi; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
242 then \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
243 rc=0; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
244 $(am__cd) $(srcdir); \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
245 else \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
246 rc=$$?; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247 $(am__cd) $(srcdir) && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
248 $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
249 fi; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250 rm -rf $$backupdir; exit $$rc
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
251
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
252 doc/interpreter/octave.dvi: doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi doc/interpreter/$(am__dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
253 $(AM_V_TEXI2DVI)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
254 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter' \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
255 $(TEXI2DVI) $(AM_V_texinfo) --build-dir=$(@:.dvi=.t2d) -o $@ $(AM_V_texidevnull) \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
256 `test -f 'doc/interpreter/octave.texi' || echo '$(abs_top_srcdir)/'`doc/interpreter/octave.texi
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
257
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
258 doc/interpreter/octave.pdf: doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi doc/interpreter/$(am__dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
259 $(AM_V_TEXI2PDF)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
260 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter' \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
261 $(TEXI2PDF) $(AM_V_texinfo) --build-dir=$(@:.pdf=.t2p) -o $@ $(AM_V_texidevnull) \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
262 `test -f 'doc/interpreter/octave.texi' || echo '$(abs_top_srcdir)/'`doc/interpreter/octave.texi
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
264 $(OCTAVE_HTML_STAMP): doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi doc/interpreter/$(am__dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
265 $(AM_V_MAKEINFO)rm -rf $(OCTAVE_HTML_DIR)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
266 $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents: 20358
diff changeset
267 -o $(OCTAVE_HTML_TMP_DIR) `test -f 'doc/interpreter/octave.texi' || echo '$(abs_top_srcdir)/'`doc/interpreter/octave.texi; \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
268 then \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
269 rm -rf $(OCTAVE_HTML_DIR)@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 mv $(OCTAVE_HTML_TMP_DIR) $(OCTAVE_HTML_DIR) && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
271 touch $@; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
272 else \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
273 rm -rf $(OCTAVE_HTML_TMP_DIR); exit 1; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
274 fi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 $(HTMLDIR_IMAGES) : doc/interpreter/octave.html/%.png: doc/interpreter/%.png $(OCTAVE_HTML_STAMP)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
277 $(AM_V_GEN)cp $< $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
278
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279 DOC_TARGETS += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 $(srcdir)/doc/interpreter/octave.info \
20377
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
281 doc/interpreter/doc-cache \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282 doc/interpreter/octave.ps \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283 doc/interpreter/octave.pdf \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
284 $(OCTAVE_HTML_STAMP) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
285 $(HTMLDIR_IMAGES)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
286
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
287 doc_EXTRA_DIST += \
20377
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
288 $(BUILT_OCTAVE_TEXI_SRC) \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
289 $(srcdir)/doc/interpreter/octave.info \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
290 doc/interpreter/TODO \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
291 doc/interpreter/doc-cache \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
292 doc/interpreter/octave.dvi \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
293 doc/interpreter/octave.ps \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
294 doc/interpreter/octave.pdf \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
295 doc/interpreter/octave.html \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
296 $(HTMLDIR_IMAGES)
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
297
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
298 ## The texi2dvi script (used to create both PDF and DVI output formats)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
299 ## uses some fixed temporary file names. In order to avoid a race condition
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
300 ## the DVI and PDF builds are forced to run serially through a Makefile rule.
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
301 #doc/interpreter/octave.pdf: doc/interpreter/octave.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
302
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
303 # Prevent packaging of distribution unless all libraries
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
304 # necessary to create documentation are present
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
305 doc-interpreter-dist-hook:
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
306 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; }
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
307 @$(GREP) '#define HAVE_CHOLMOD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing CHOLMOD library. Cannot package distribution!" ; exit 1; }
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
308 @$(GREP) '#define HAVE_UMFPACK 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing UMFPACK library. Cannot package distribution!" ; exit 1; }
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
309 @$(GREP) '#define HAVE_QHULL 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing QHULL library. Cannot package distribution!" ; exit 1; }
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
311 octetc_DATA += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
312 doc/interpreter/doc-cache \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
313 doc/interpreter/macros.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
314
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315 DOCSTRING_FILES = $(shell $(srcdir)/doc/interpreter/find-docstring-files.sh "$(top_srcdir)")
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
316
20362
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 20360
diff changeset
317 DOCSTRING_DEPS = scripts/.DOCSTRINGS libinterp/.DOCSTRINGS
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 20360
diff changeset
318
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 20360
diff changeset
319 doc/interpreter/doc-cache: $(DOCSTRING_DEPS) $(OCTAVE_INTERPRETER_TARGETS) doc/interpreter/mk_doc_cache.m doc/interpreter/$(octave_dirstamp)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 $(AM_V_GEN)rm -f $@-t $@ && \
20395
fb97c11f8e67 clean generated AUTHORS file
John W. Eaton <jwe@octave.org>
parents: 20386
diff changeset
321 $(top_builddir)/run-octave -f -q -H $(srcdir)/doc/interpreter/mk_doc_cache.m - $(srcdir)/doc/interpreter/macros.texi $(DOCSTRING_FILES) > $@-t && \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
322 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
323
20362
0ce7d8303152 eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents: 20360
diff changeset
324 $(MUNGED_TEXI_SRC): $(DOCSTRING_DEPS) $(munge_texi_SOURCES)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
325
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
326 %.texi : %.txi doc/interpreter/munge-texi.pl doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
327 $(AM_V_GEN)rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
328 $(PERL) $(srcdir)/doc/interpreter/munge-texi.pl $(top_srcdir) $(DOCSTRING_FILES) < $< > $@-t && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
329 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
330
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
331 doc/interpreter/contributors.texi: doc/interpreter/contributors.in doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
332 $(AM_V_GEN)rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 $(AWK) -f $(srcdir)/doc/interpreter/mkcontrib.awk $(srcdir)/doc/interpreter/contributors.in > $@-t && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
336 AUTHORS: doc/interpreter/preface.texi doc/interpreter/contributors.texi doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
338 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/doc/interpreter/contributors.texi ] && [ ! -f doc/interpreter/contributors.texi ]; then \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 cp $(srcdir)/doc/interpreter/contributors.texi doc/interpreter/contributors.texi; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
340 touch -r $(srcdir)/doc/interpreter/contributors.texi doc/interpreter/contributors.texi; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
341 fi && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342 $(MAKEINFO) -D AUTHORSONLY -I $(srcdir)/doc/interpreter/ \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343 --no-validate --no-headers --no-split --output $@-t $< && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
344 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
345
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346 BUGS: doc/interpreter/bugs.texi doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
347 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
348 $(MAKEINFO) -D BUGSONLY -I $(srcdir)/doc/interpreter \
20374
3904d83e47d1 write BUGS and INSTALL.OCTAVE files in top-level directory
John W. Eaton <jwe@octave.org>
parents: 20363
diff changeset
349 --no-validate --no-headers --no-split --output $@-t $< && \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
350 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
351
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
352 INSTALL.OCTAVE: doc/interpreter/install.texi doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
353 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
354 $(MAKEINFO) -D INSTALLONLY -I $(srcdir)/doc/interpreter \
20374
3904d83e47d1 write BUGS and INSTALL.OCTAVE files in top-level directory
John W. Eaton <jwe@octave.org>
parents: 20363
diff changeset
355 --no-validate --no-headers --no-split --output $@-t $< && \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
356 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
357
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
358 doc_EXTRA_DIST += \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
359 doc/interpreter/config-images.sh \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360 doc/interpreter/contributors.in \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 doc/interpreter/doc-cache \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362 doc/interpreter/find-docstring-files.sh \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
363 doc/interpreter/genpropdoc.m \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
364 doc/interpreter/graphics_properties.mk \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
365 doc/interpreter/images \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
366 doc/interpreter/images.awk \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
367 doc/interpreter/images.mk \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
368 doc/interpreter/macros.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
369 doc/interpreter/mk_doc_cache.m \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
370 doc/interpreter/mkcontrib.awk \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
371 doc/interpreter/munge-texi.pl \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
372 $(DOC_IMAGES) \
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
373 $(DOC_IMAGES_SRC) \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
374 $(LOGOS) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
375 $(TXI_SRC)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
377 doc-interpreter-clean:
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
378 rm -rf t2d_cache
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
379
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
380 doc_DISTCLEANFILES += \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
381 $(BUILT_OCTAVE_TEXI_SRC) \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
382 $(OCTAVE_HTML_STAMP)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
383
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
384 doc_MAINTAINERCLEANFILES += \
20395
fb97c11f8e67 clean generated AUTHORS file
John W. Eaton <jwe@octave.org>
parents: 20386
diff changeset
385 AUTHORS \
20363
fa9fa6ab76f0 eliminate recursive make invocation in scripts directory tree
John W. Eaton <jwe@octave.org>
parents: 20362
diff changeset
386 $(BUILT_DOC_IMAGES) \
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
387 doc/interpreter/doc-cache
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
388
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
389 DIRSTAMP_FILES += doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
390
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
391 liboctave_TEXINFOS = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
392 doc/liboctave/array.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
393 doc/liboctave/bugs.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
394 doc/liboctave/cp-idx.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 doc/liboctave/dae.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
396 doc/liboctave/diffeq.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
397 doc/liboctave/error.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
398 doc/liboctave/factor.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
399 doc/liboctave/fn-idx.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
400 doc/liboctave/gpl.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401 doc/liboctave/install.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
402 doc/liboctave/intro.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
403 doc/liboctave/matvec.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
404 doc/liboctave/nleqn.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
405 doc/liboctave/nlfunc.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
406 doc/liboctave/ode.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
407 doc/liboctave/optim.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
408 doc/liboctave/preface.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 doc/liboctave/quad.texi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 doc/liboctave/range.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412 info_TEXINFOS += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413 doc/liboctave/liboctave.texi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 DOC_TARGETS += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 $(srcdir)/doc/liboctave/liboctave.info \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 doc/liboctave/liboctave.ps \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418 doc/liboctave/liboctave.pdf \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 doc/liboctave/liboctave.html
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
421 doc_EXTRA_DIST += \
20377
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
422 $(liboctave_TEXINFOS) \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
423 $(srcdir)/doc/liboctave/liboctave.info \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
424 doc/liboctave/liboctave.dvi \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
425 doc/liboctave/liboctave.ps \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
426 doc/liboctave/liboctave.pdf \
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
427 doc/liboctave/liboctave.html
0e2da885a410 fix lists of files to distribute
John W. Eaton <jwe@octave.org>
parents: 20374
diff changeset
428
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
429 ## The texi2dvi script (used to create both PDF and DVI output formats)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
430 ## uses some fixed temporary file names. In order to avoid a race condition
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
431 ## the DVI and PDF builds are forced to run serially through a Makefile rule.
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
432 #doc/liboctave/liboctave.pdf: doc/liboctave/liboctave.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
433
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
434 doc-liboctave-clean:
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
435 rm -rf doc/liboctave/t2d_cache
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
436
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
437 DIRSTAMP_FILES += doc/liboctave/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
438
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
439 refcard_TEX_SRC = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
440 doc/refcard/refcard.tex \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
441 doc/refcard/refcard-a4.tex \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
442 doc/refcard/refcard-legal.tex \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
443 doc/refcard/refcard-letter.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
444
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
445 refcard_DVI = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
446 doc/refcard/refcard-a4.dvi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
447 doc/refcard/refcard-legal.dvi \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
448 doc/refcard/refcard-letter.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
449
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
450 refcard_PDF = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
451 doc/refcard/refcard-a4.pdf \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
452 doc/refcard/refcard-legal.pdf \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
453 doc/refcard/refcard-letter.pdf
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
454
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
455 refcard_PS = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
456 doc/refcard/refcard-letter.ps \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
457 doc/refcard/refcard-a4.ps \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
458 doc/refcard/refcard-legal.ps
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
460 refcard_FORMATTED = \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 $(refcard_DVI) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
462 $(refcard_PDF) \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 $(refcard_PS)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
464
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465 DOC_TARGETS += \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 $(refcard_FORMATTED)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
467
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
468 doc/refcard/refcard-a4.pdf: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
469 doc/refcard/refcard-a4.dvi: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
470 doc/refcard/refcard-a4.ps: doc/refcard/refcard-a4.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
471 -$(AM_V_DVIPS)$(DVIPS) $(AM_V_texinfo) -T 297mm,210mm -o $@ $<
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
472
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
473 doc/refcard/refcard-legal.pdf: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
474 doc/refcard/refcard-legal.dvi: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
475 doc/refcard/refcard-legal.ps: doc/refcard/refcard-legal.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
476 -$(AM_V_DVIPS)$(DVIPS) $(AM_V_texinfo) -T 14in,8.5in -o $@ $<
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
477
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
478 doc/refcard/refcard-letter.pdf: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
479 doc/refcard/refcard-letter.dvi: doc/refcard/refcard.tex
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
480 doc/refcard/refcard-letter.ps: doc/refcard/refcard-letter.dvi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
481 -$(AM_V_DVIPS)$(DVIPS) $(AM_V_texinfo) -T 11in,8.5in -o $@ $<
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
482
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
483 DIRSTAMP_FILES += doc/refcard/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
484
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
485 $(srcdir)/doc/interpreter/images.mk: $(srcdir)/doc/interpreter/config-images.sh $(srcdir)/doc/interpreter/images.awk $(srcdir)/doc/interpreter/images
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
486 $(srcdir)/doc/interpreter/config-images.sh $(top_srcdir)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
487
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
488 $(refcard_DVI) : %.dvi : %.tex doc/refcard/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
489 -$(AM_V_TEX)cd $(@D) && \
20358
820c5a4dd0ab use $(abs_top_srcdir) in TEXINPUTS for processing refcard sources
John W. Eaton <jwe@octave.org>
parents: 20348
diff changeset
490 TEXINPUTS="$(abs_top_srcdir)/doc/refcard:$(TEXINPUTS):" \
20348
9e361ecea878 use base filenames when processing refcard sources
John W. Eaton <jwe@octave.org>
parents: 20342
diff changeset
491 $(TEX) $(<F) $(AM_V_texidevnull)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
492
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
493 $(refcard_PDF) : %.pdf : %.tex doc/refcard/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
494 -$(AM_V_PDFTEX)cd $(@D) && \
20358
820c5a4dd0ab use $(abs_top_srcdir) in TEXINPUTS for processing refcard sources
John W. Eaton <jwe@octave.org>
parents: 20348
diff changeset
495 TEXINPUTS="$(abs_top_srcdir)/doc/refcard:$(TEXINPUTS):" \
20348
9e361ecea878 use base filenames when processing refcard sources
John W. Eaton <jwe@octave.org>
parents: 20342
diff changeset
496 $(PDFTEX) $(<F) $(AM_V_texidevnull)
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
497
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
498 doc_EXTRA_DIST += \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
499 $(refcard_FORMATTED) \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
500 $(refcard_TEX_SRC)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
501
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
502 doc_CLEANFILES += \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
503 doc/refcard/refcard-a4.log \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
504 doc/refcard/refcard-legal.log \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
505 doc/refcard/refcard-letter.log
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
506
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
507 doc_MAINTAINERCLEANFILES += \
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
508 $(refcard_FORMATTED)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
509
20342
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
510 endif
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
511
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
512 doc/interpreter/undocumented_list:
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
513 rm -f $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
514 -$(PERL) $(srcdir)/doccheck/mk_undocumented_list > $@-t
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
515 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
516 .PHONY: doc/interpreter/undocumented_list
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
517
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
518 SPELLCHECK_FILES = $(MUNGED_TEXI_SRC:.texi=.scheck)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
519
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
520 %.scheck: %.texi doc/interpreter/$(octave_dirstamp)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
521 $(srcdir)/doc/interpreter/doccheck/spellcheck $< > $@-t
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
522 mv $@-t $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
523 [ -s $@ ] || rm -f $@
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
524
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
525 spellcheck: $(SPELLCHECK_FILES)
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
526 @if ls *.scheck >/dev/null 2>&1 ; then \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
527 echo "Spellcheck failed"; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
528 echo "Review the following files:"; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
529 ls *.scheck ; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
530 exit 1 ; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
531 else \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
532 echo "Spellcheck passed"; \
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
533 fi
c3c1fb44f9b5 eliminate recursive make invocations in doc directory tree
John W. Eaton <jwe@octave.org>
parents:
diff changeset
534 .PHONY: spellcheck
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
535
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
536 EXTRA_DIST += $(doc_EXTRA_DIST)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
537
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
538 CLEANFILES += $(doc_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
539 DISTCLEANFILES += $(doc_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
540 MAINTAINERCLEANFILES += $(doc_MAINTAINERCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
541
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
542 doc-clean:
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
543 rm -f $(doc_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
544
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
545 doc-distclean: doc-clean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
546 rm -f $(doc_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
547
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
548 doc-maintainer-clean: doc-distclean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20395
diff changeset
549 rm -f $(doc_MAINTAINERCLEANFILES)