annotate doc/interpreter/module.mk @ 24938:4f1da669b610 stable

build: export and use qcollectiongenerator command line options correctly * acinclude.m4 (OCTAVE_CHECK_QT_VERSION): Export QCOLLECTIONGENERATORFLAGS and QHELPGENERATORFLAGS. * doc/interpreter/module.mk ($(OCTAVE_QTHELP_FILES)): Add command line options from $(QCOLLECTIONGENERATORFLAGS).
author Mike Miller <mtmiller@octave.org>
date Mon, 19 Mar 2018 20:20:25 -0700
parents 8862b95d64ec
children f0a427d09dba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 if AMCOND_BUILD_DOCS
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 GRAPH_PROP_TEXI_SRC = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
4 %reldir%/plot-axesproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
5 %reldir%/plot-figureproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
6 %reldir%/plot-imageproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
7 %reldir%/plot-lightproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
8 %reldir%/plot-lineproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
9 %reldir%/plot-patchproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
10 %reldir%/plot-rootproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
11 %reldir%/plot-surfaceproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
12 %reldir%/plot-textproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
13 %reldir%/plot-uimenuproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
14 %reldir%/plot-uibuttongroupproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
15 %reldir%/plot-uicontextmenuproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
16 %reldir%/plot-uipanelproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
17 %reldir%/plot-uicontrolproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
18 %reldir%/plot-uitoolbarproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
19 %reldir%/plot-uipushtoolproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
20 %reldir%/plot-uitoggletoolproperties.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 $(GRAPH_PROP_TEXI_SRC): | $(OCTAVE_INTERPRETER_TARGETS)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 define gen-propdoc-texi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 rm -f $@-t $@ && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 $(SHELL) run-octave --norc --silent --no-history --path $(srcdir)/doc/interpreter --eval "genpropdoc ('$(1)');" > $@-t && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 endef
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
30 %reldir%/plot-axesproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 $(AM_V_GEN)$(call gen-propdoc-texi,axes)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
33 %reldir%/plot-figureproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 $(AM_V_GEN)$(call gen-propdoc-texi,figure)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
36 %reldir%/plot-imageproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 $(AM_V_GEN)$(call gen-propdoc-texi,image)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
39 %reldir%/plot-lightproperties.texi: %reldir%/genpropdoc.m
21789
6afdf40be534 Implement graphics object "light" (patch #8943).
mmuetzel <markus.muetzel@gmx.de>
parents: 21646
diff changeset
40 $(AM_V_GEN)$(call gen-propdoc-texi,light)
6afdf40be534 Implement graphics object "light" (patch #8943).
mmuetzel <markus.muetzel@gmx.de>
parents: 21646
diff changeset
41
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
42 %reldir%/plot-lineproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 $(AM_V_GEN)$(call gen-propdoc-texi,line)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
45 %reldir%/plot-patchproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 $(AM_V_GEN)$(call gen-propdoc-texi,patch)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
48 %reldir%/plot-rootproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 $(AM_V_GEN)$(call gen-propdoc-texi,root)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
51 %reldir%/plot-surfaceproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 $(AM_V_GEN)$(call gen-propdoc-texi,surface)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
54 %reldir%/plot-textproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 $(AM_V_GEN)$(call gen-propdoc-texi,text)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
57 %reldir%/plot-uimenuproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 $(AM_V_GEN)$(call gen-propdoc-texi,uimenu)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
60 %reldir%/plot-uibuttongroupproperties.texi: %reldir%/genpropdoc.m
21824
6780a8657be3 Implement uibuttongroup (bug #47513)
Andrew Thornton <art27@cantab.net>
parents: 21789
diff changeset
61 $(AM_V_GEN)$(call gen-propdoc-texi,uibuttongroup)
6780a8657be3 Implement uibuttongroup (bug #47513)
Andrew Thornton <art27@cantab.net>
parents: 21789
diff changeset
62
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
63 %reldir%/plot-uicontextmenuproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 $(AM_V_GEN)$(call gen-propdoc-texi,uicontextmenu)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
66 %reldir%/plot-uipanelproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 $(AM_V_GEN)$(call gen-propdoc-texi,uipanel)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
69 %reldir%/plot-uicontrolproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 $(AM_V_GEN)$(call gen-propdoc-texi,uicontrol)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
72 %reldir%/plot-uitoolbarproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 $(AM_V_GEN)$(call gen-propdoc-texi,uitoolbar)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
75 %reldir%/plot-uipushtoolproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 $(AM_V_GEN)$(call gen-propdoc-texi,uipushtool)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
78 %reldir%/plot-uitoggletoolproperties.texi: %reldir%/genpropdoc.m
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 $(AM_V_GEN)$(call gen-propdoc-texi,uitoggletool)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 dist_man_MANS = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
82 %reldir%/mkoctfile.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
83 %reldir%/octave-cli.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
84 %reldir%/octave-config.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
85 %reldir%/octave.1
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 BUILT_DOC_IMAGES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 $(BUILT_DOC_IMAGES_EPS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 $(BUILT_DOC_IMAGES_PDF) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 $(BUILT_DOC_IMAGES_PNG) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91 $(BUILT_DOC_IMAGES_TXT)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 DOC_IMAGES_EPS += $(BUILT_DOC_IMAGES_EPS)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 DOC_IMAGES_PDF += $(BUILT_DOC_IMAGES_PDF)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 DOC_IMAGES_PNG += $(BUILT_DOC_IMAGES_PNG)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 DOC_IMAGES_TXT += $(BUILT_DOC_IMAGES_TXT)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 DOC_IMAGES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 $(BUILT_DOC_IMAGES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 $(BUILT_DOC_IMAGES): | $(OCTAVE_INTERPRETER_TARGETS)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
103 HTMLDIR_IMAGES = $(patsubst %reldir%/%.png, %reldir%/octave.html/%.png, $(DOC_IMAGES_PNG))
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 LOGOS = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
106 %reldir%/octave_logo.eps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
107 %reldir%/octave_logo.pdf
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
109 DOC_IMAGES_EPS += %reldir%/octave_logo.eps
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
110 DOC_IMAGES_PDF += %reldir%/octave_logo.pdf
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 MUNGED_TEXI_SRC = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
113 %reldir%/arith.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
114 %reldir%/audio.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
115 %reldir%/basics.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
116 %reldir%/bugs.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
117 %reldir%/container.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
118 %reldir%/cp-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
119 %reldir%/data.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
120 %reldir%/debug.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
121 %reldir%/diffeq.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
122 %reldir%/diagperm.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
123 %reldir%/external.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
124 %reldir%/errors.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
125 %reldir%/eval.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
126 %reldir%/expr.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
127 %reldir%/fn-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
128 %reldir%/func.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
129 %reldir%/geometry.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
130 %reldir%/gui.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
131 %reldir%/gpl.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
132 %reldir%/grammar.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
133 %reldir%/image.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
134 %reldir%/install.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
135 %reldir%/interp.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
136 %reldir%/intro.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
137 %reldir%/io.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
138 %reldir%/linalg.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
139 %reldir%/matrix.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
140 %reldir%/nonlin.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
141 %reldir%/numbers.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
142 %reldir%/obsolete.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
143 %reldir%/oop.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
144 %reldir%/op-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
145 %reldir%/optim.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
146 %reldir%/package.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
147 %reldir%/plot.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
148 %reldir%/poly.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
149 %reldir%/preface.texi \
24549
2c497be89710 doc: Create new Graphic Properties Index (bug #52812).
Rik <rik@octave.org>
parents: 24531
diff changeset
150 %reldir%/pr-idx.texi \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
151 %reldir%/quad.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
152 %reldir%/set.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
153 %reldir%/signal.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
154 %reldir%/sparse.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
155 %reldir%/stats.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
156 %reldir%/stmt.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
157 %reldir%/strings.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
158 %reldir%/system.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
159 %reldir%/testfun.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
160 %reldir%/var.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
161 %reldir%/vectorize.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 TXI_SRC = $(MUNGED_TEXI_SRC:.texi=.txi)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 BUILT_OCTAVE_TEXI_SRC = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
166 %reldir%/contributors.texi \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 $(GRAPH_PROP_TEXI_SRC) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168 $(MUNGED_TEXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 info_TEXINFOS += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
171 %reldir%/octave.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 octave_TEXINFOS = \
24531
c85871d2a10e build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents: 23495
diff changeset
174 %reldir%/macros.texi \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 $(BUILT_OCTAVE_TEXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
177 INFO_DEPS += $(srcdir)/%reldir%/octave.info
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
178 DVIS += %reldir%/octave.dvi
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
179 PDFS += %reldir%/octave.pdf
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
180 PSS += %reldir%/octave.ps
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
181 HTMLS += %reldir%/octave.html
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183 ## As of version 1.14.1, automake does not seem to generate
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
184 ## rules for DVI, PDF, or HTML output that work for us when
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
185 ## there are additional dependencies, so we include our own
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186 ## versions of the rules here.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
187
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
188 OCTAVE_HTML_DIR = %reldir%/octave.html
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 OCTAVE_HTML_TMP_DIR = $(OCTAVE_HTML_DIR:.html=.htp)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190 OCTAVE_HTML_STAMP = $(OCTAVE_HTML_DIR)/.octave-html-stamp
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
192 OCTAVE_CSS = %reldir%/octave.css
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193 HTMLDIR_CSS = $(OCTAVE_HTML_DIR)/octave.css
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
195 OCTAVE_QTHELP_FILES = %reldir%/octave_interpreter.qhc %reldir%/octave_interpreter.qch
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
196
24889
92aaa85c06b8 build: use normal automake syntax for installing Qt help (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24888
diff changeset
197 octdoc_DATA += \
92aaa85c06b8 build: use normal automake syntax for installing Qt help (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24888
diff changeset
198 $(OCTAVE_QTHELP_FILES)
92aaa85c06b8 build: use normal automake syntax for installing Qt help (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24888
diff changeset
199
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
200 $(srcdir)/%reldir%/octave.info: $(DOC_IMAGES_TXT) $(octave_TEXINFOS)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
201 %reldir%/octave.dvi: $(DOC_IMAGES_EPS) $(octave_TEXINFOS)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
202 %reldir%/octave.pdf: $(DOC_IMAGES_PDF) $(octave_TEXINFOS)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 $(OCTAVE_HTML_STAMP): $(DOC_IMAGES_PNG) $(octave_TEXINFOS)
24888
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
204
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
205 $(OCTAVE_QTHELP_FILES): $(OCTAVE_HTML_STAMP) $(srcdir)/%reldir%/prepare_qhelp.py
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
206 $(AM_V_GEN)rm -f $(OCTAVE_QTHELP_FILES) && \
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
207 $(PYTHON) $(srcdir)/%reldir%/prepare_qhelp.py %reldir%/octave_interpreter octave.html && \
24938
4f1da669b610 build: export and use qcollectiongenerator command line options correctly
Mike Miller <mtmiller@octave.org>
parents: 24902
diff changeset
208 $(QCOLLECTIONGENERATOR) $(QCOLLECTIONGENERATORFLAGS) %reldir%/octave_interpreter.qhcp -o %reldir%/octave_interpreter.qhc >/dev/null && \
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
209 rm -f %reldir%/octave_interpreter.qhcp %reldir%/octave_interpreter.qhp
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210
24888
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
211 ## The Qt help collection generator command produces two output files
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
212 ## with the same base name: the compressed help (qch) file and the help
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
213 ## collection (qhc) file. Declare the qhc file to depend on the
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
214 ## associated qch file, so that the files are built serially.
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
215 %reldir%/octave_interpreter.qhc: %reldir%/octave_interpreter.qch
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
216
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
217 $(srcdir)/%reldir%/octave.info: %reldir%/octave.texi $(srcdir)/%reldir%/version-octave.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 am__cwd=`pwd` && $(am__cd) $(srcdir) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220 rm -rf $$backupdir && mkdir $$backupdir && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221 if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
222 for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
223 if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
224 done; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
225 else :; fi && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
226 cd "$$am__cwd"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
227 if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
228 -o $@ $(srcdir)/%reldir%/octave.texi; \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
229 then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
230 rc=0; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
231 $(am__cd) $(srcdir); \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
232 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233 rc=$$?; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
234 $(am__cd) $(srcdir) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
235 $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
236 fi; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
237 rm -rf $$backupdir; exit $$rc
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
238
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
239 %reldir%/octave.dvi: %reldir%/octave.texi $(srcdir)/%reldir%/version-octave.texi | %reldir%/$(am__dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
240 $(AM_V_TEXI2DVI)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
241 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(srcdir)/doc/interpreter' \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
242 $(TEXI2DVI) $(AM_V_texinfo) --build-dir=$(@:.dvi=.t2d) -o $@ $(AM_V_texidevnull) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
243 `test -f '%reldir%/octave.texi' || echo '$(abs_top_srcdir)/'`%reldir%/octave.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
244
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
245 %reldir%/octave.pdf: %reldir%/octave.texi $(srcdir)/%reldir%/version-octave.texi | %reldir%/$(am__dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
246 $(AM_V_TEXI2PDF)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247 MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter' \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
248 $(TEXI2PDF) $(AM_V_texinfo) --build-dir=$(@:.pdf=.t2p) -o $@ $(AM_V_texidevnull) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
249 `test -f '%reldir%/octave.texi' || echo '$(abs_top_srcdir)/'`%reldir%/octave.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
251 %reldir%/octave.html: $(OCTAVE_HTML_STAMP)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
252
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
253 $(OCTAVE_HTML_STAMP): %reldir%/octave.texi $(srcdir)/%reldir%/version-octave.texi | %reldir%/$(am__dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
254 $(AM_V_MAKEINFO)rm -rf $(OCTAVE_HTML_DIR)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
255 $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
256 -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
257 --css-ref=octave.css \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
258 -o $(OCTAVE_HTML_TMP_DIR) `test -f '%reldir%/octave.texi' || echo '$(abs_top_srcdir)/'`%reldir%/octave.texi; \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
259 then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
260 rm -rf $(OCTAVE_HTML_DIR) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
261 mv $(OCTAVE_HTML_TMP_DIR) $(OCTAVE_HTML_DIR) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
262 touch $@; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
264 rm -rf $(OCTAVE_HTML_TMP_DIR); exit 1; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
265 fi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
266
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
267 $(HTMLDIR_IMAGES) $(HTMLDIR_CSS) : %reldir%/octave.html/%: %reldir%/% $(OCTAVE_HTML_STAMP)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
268 $(AM_V_GEN)cp $< $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
269
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 DOC_TARGETS += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
271 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
272 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
273 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
274 %reldir%/octave.pdf \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275 $(OCTAVE_HTML_STAMP) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 $(HTMLDIR_IMAGES) \
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
277 $(HTMLDIR_CSS) \
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
278 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 ## Distribute both OCTAVE_CSS and HTMLDIR_CSS so that the rules for
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281 ## building HTMLDIR_CSS work properly.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283 doc_EXTRA_DIST += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
284 $(BUILT_OCTAVE_TEXI_SRC) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
285 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
286 %reldir%/TODO \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
287 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
288 %reldir%/octave.dvi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
289 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
290 %reldir%/octave.pdf \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
291 %reldir%/octave.html \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
292 $(HTMLDIR_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
293 $(OCTAVE_CSS) \
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
294 $(HTMLDIR_CSS) \
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
295 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
296
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
297 # Prevent packaging of distribution unless all libraries
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
298 # necessary to create documentation are present
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
299 doc-interpreter-dist-hook:
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
300 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; }
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
301 @$(GREP) '#define HAVE_CHOLMOD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing CHOLMOD library. Cannot package distribution!" ; exit 1; }
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
302 @$(GREP) '#define HAVE_UMFPACK 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing UMFPACK library. Cannot package distribution!" ; exit 1; }
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
303 @$(GREP) '#define HAVE_QHULL 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing QHULL library. Cannot package distribution!" ; exit 1; }
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
304
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
305 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
306
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
307 ## These two texi files have an additional dependency through the
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
308 ## @EXAMPLEFILE macro.
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
309 %reldir%/oop.texi: $(examples_code_SRC)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
310 %reldir%/external.texi: $(examples_code_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
311
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
312 %.texi : %.txi %reldir%/munge-texi.pl | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
313 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
314 $(PERL) $(srcdir)/%reldir%/munge-texi.pl $(top_srcdir) $(DOCSTRING_FILES) < $< > $@-t && \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
316
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
317 %reldir%/contributors.texi: %reldir%/contributors.in | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
318 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
319 $(AWK) -f $(srcdir)/%reldir%/mkcontrib.awk $(srcdir)/%reldir%/contributors.in > $@-t && \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
321
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
322 AUTHORS: %reldir%/preface.texi %reldir%/contributors.texi | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
323 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
324 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/%reldir%/contributors.texi ] && [ ! -f %reldir%/contributors.texi ]; then \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
325 cp $(srcdir)/%reldir%/contributors.texi %reldir%/contributors.texi; \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
326 touch -r $(srcdir)/%reldir%/contributors.texi %reldir%/contributors.texi; \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
327 fi && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
328 $(MAKEINFO) -D AUTHORSONLY -I $(srcdir)/%reldir%/ \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
329 --no-validate --no-headers --no-split --output $@-t $< && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
330 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
331
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
332 BUGS: %reldir%/bugs.texi | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 $(MAKEINFO) -D BUGSONLY -I $(srcdir)/doc/interpreter \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335 --no-validate --no-headers --no-split --output $@-t $< && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
336 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337
24531
c85871d2a10e build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents: 23495
diff changeset
338 INSTALL.OCTAVE: %reldir%/install.texi %reldir%/macros.texi | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
340 $(MAKEINFO) -D INSTALLONLY -I $(srcdir)/doc/interpreter \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
341 --no-validate --no-headers --no-split --output $@-t $< && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
344 doc_EXTRA_DIST += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
345 %reldir%/config-images.sh \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
346 %reldir%/contributors.in \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
347 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
348 %reldir%/genpropdoc.m \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
349 %reldir%/graphics_properties.mk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
350 %reldir%/images \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
351 %reldir%/images.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
352 %reldir%/images.mk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
353 %reldir%/macros.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
354 %reldir%/mk-doc-cache.pl \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
355 %reldir%/mkcontrib.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
356 %reldir%/munge-texi.pl \
24902
8862b95d64ec maint: include prepare_qhelp.py in the distribution (bug #53368)
Mike Miller <mtmiller@octave.org>
parents: 24889
diff changeset
357 %reldir%/prepare_qhelp.py \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
358 $(DOC_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
359 $(DOC_IMAGES_SRC) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360 $(LOGOS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 $(TXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
363 doc_MAINTAINERCLEANFILES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
364 AUTHORS \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
365 $(BUILT_DOC_IMAGES) \
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
366 $(BUILT_OCTAVE_TEXI_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
367
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
368 ## The TeX software suite is used to create both PDF and PS output formats.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
369 ## In order to avoid race conditions between simultaneous TeX commands, the
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
370 ## PDF and PS builds are forced to run serially through the following rule.
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
371 %reldir%/octave.pdf: %reldir%/octave.ps
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
373 endif
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
374
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
375 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
377 ## The doc-cache file can be built without TeX but it does require
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
378 ## makeinfo, but that is needed to display function docstrings at the
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
379 ## Octave command line. The macros.texi file must also be installed
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
380 ## to display docstrings at the command line.
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
381
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
382 doc_MAINTAINERCLEANFILES += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
383 %reldir%/doc-cache
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
384
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
385 octetc_DATA += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
386 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
387 %reldir%/macros.texi
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
388
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
389 %reldir%/doc-cache: $(DOCSTRING_FILES) %reldir%/mk-doc-cache.pl | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp)
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
390 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
391 $(PERL) $(srcdir)/%reldir%/mk-doc-cache.pl $(srcdir) $(srcdir)/%reldir%/macros.texi $(DOCSTRING_FILES) > $@-t && \
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
392 mv $@-t $@
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
393
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
394 %reldir%/undocumented_list:
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 rm -f $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
396 -cd $(srcdir)/doc/interpreter; $(PERL) ./doccheck/mk_undocumented_list > $(@F)-t
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
397 mv $@-t $@
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
398 .PHONY: %reldir%/undocumented_list
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
399
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
400 SPELLCHECK_FILES = $(MUNGED_TEXI_SRC:.texi=.scheck)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
402 %.scheck: %.texi | %reldir%/$(octave_dirstamp)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
403 cd $(srcdir)/doc/interpreter; ./doccheck/spellcheck $(<F) > $(@F)-t
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
404 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
405 [ -s $@ ] || rm -f $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
406
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
407 spellcheck: $(SPELLCHECK_FILES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
408 @cd $(srcdir)/doc/interpreter ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 if ls *.scheck >/dev/null 2>&1 ; then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 echo "Spellcheck failed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411 echo "Review the following files:"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412 ls *.scheck ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413 exit 1 ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 echo "Spellcheck passed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 fi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 .PHONY: spellcheck
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 doc-interpreter-clean:
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
420 rm -rf %reldir%/octave.t2d
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
421 rm -rf %reldir%/octave.t2p