annotate doc/interpreter/module.mk @ 28178:0689e92f8b54 stable

build: ensure dependency between contributors.texi and preface.texi (bug #58057) * doc/interpreter/module.mk (%reldir%/preface.texi): Depend explicitly on %reldir%/contributors.texi. Thanks to Sébastien Fabbro and Michael Orlitzky from Gentoo for the patch.
author Mike Miller <mtmiller@octave.org>
date Fri, 27 Mar 2020 12:47:33 -0700
parents 1463d55540e6
children 496735a910c1 c49a546a745a
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 \
26112
36e0e5b428e7 Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents: 25648
diff changeset
18 %reldir%/plot-uitableproperties.texi \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
19 %reldir%/plot-uitoolbarproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
20 %reldir%/plot-uipushtoolproperties.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
21 %reldir%/plot-uitoggletoolproperties.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 $(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
24
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 define gen-propdoc-texi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 rm -f $@-t $@ && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 $(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
28 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 endef
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
31 GRAPHICS_PROPS_SRC = libinterp/corefcn/graphics.in.h libinterp/corefcn/genprops.awk
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
32
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
33 %reldir%/plot-axesproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,axes)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
36 %reldir%/plot-figureproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,figure)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
39 %reldir%/plot-imageproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 $(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
41
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
42 %reldir%/plot-lightproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21789
6afdf40be534 Implement graphics object "light" (patch #8943).
mmuetzel <markus.muetzel@gmx.de>
parents: 21646
diff changeset
43 $(AM_V_GEN)$(call gen-propdoc-texi,light)
6afdf40be534 Implement graphics object "light" (patch #8943).
mmuetzel <markus.muetzel@gmx.de>
parents: 21646
diff changeset
44
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
45 %reldir%/plot-lineproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,line)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
48 %reldir%/plot-patchproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,patch)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
51 %reldir%/plot-rootproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,root)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
54 %reldir%/plot-surfaceproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,surface)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
57 %reldir%/plot-textproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,text)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
60 %reldir%/plot-uimenuproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 $(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
62
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
63 %reldir%/plot-uibuttongroupproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21824
6780a8657be3 Implement uibuttongroup (bug #47513)
Andrew Thornton <art27@cantab.net>
parents: 21789
diff changeset
64 $(AM_V_GEN)$(call gen-propdoc-texi,uibuttongroup)
6780a8657be3 Implement uibuttongroup (bug #47513)
Andrew Thornton <art27@cantab.net>
parents: 21789
diff changeset
65
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
66 %reldir%/plot-uicontextmenuproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,uicontextmenu)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
69 %reldir%/plot-uipanelproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,uipanel)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
72 %reldir%/plot-uicontrolproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,uicontrol)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74
26112
36e0e5b428e7 Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents: 25648
diff changeset
75 %reldir%/plot-uitableproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
36e0e5b428e7 Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents: 25648
diff changeset
76 $(AM_V_GEN)$(call gen-propdoc-texi,uitable)
36e0e5b428e7 Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents: 25648
diff changeset
77
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
78 %reldir%/plot-uitoolbarproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
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,uitoolbar)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
81 %reldir%/plot-uipushtoolproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 $(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
83
25358
8cac064e6623 Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents: 25314
diff changeset
84 %reldir%/plot-uitoggletoolproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85 $(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
86
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 dist_man_MANS = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
88 %reldir%/mkoctfile.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
89 %reldir%/octave-cli.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
90 %reldir%/octave-config.1 \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
91 %reldir%/octave.1
21646
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 BUILT_DOC_IMAGES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 $(BUILT_DOC_IMAGES_EPS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 $(BUILT_DOC_IMAGES_PDF) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 $(BUILT_DOC_IMAGES_PNG) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 $(BUILT_DOC_IMAGES_TXT)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 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
100 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
101 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
102 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
103
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 DOC_IMAGES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 $(BUILT_DOC_IMAGES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 $(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
108
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
109 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
110
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 LOGOS = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
112 %reldir%/octave_logo.eps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
113 %reldir%/octave_logo.pdf
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
115 DOC_IMAGES_EPS += %reldir%/octave_logo.eps
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
116 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
117
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 MUNGED_TEXI_SRC = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
119 %reldir%/arith.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
120 %reldir%/audio.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
121 %reldir%/basics.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
122 %reldir%/bugs.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
123 %reldir%/container.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
124 %reldir%/cp-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
125 %reldir%/data.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
126 %reldir%/debug.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
127 %reldir%/diffeq.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
128 %reldir%/diagperm.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
129 %reldir%/external.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
130 %reldir%/errors.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
131 %reldir%/eval.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
132 %reldir%/expr.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
133 %reldir%/fn-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
134 %reldir%/func.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
135 %reldir%/geometry.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
136 %reldir%/gui.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
137 %reldir%/gpl.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
138 %reldir%/grammar.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
139 %reldir%/image.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
140 %reldir%/install.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
141 %reldir%/interp.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
142 %reldir%/intro.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
143 %reldir%/io.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
144 %reldir%/linalg.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
145 %reldir%/matrix.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
146 %reldir%/nonlin.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
147 %reldir%/numbers.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
148 %reldir%/obsolete.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
149 %reldir%/oop.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
150 %reldir%/op-idx.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
151 %reldir%/optim.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
152 %reldir%/package.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
153 %reldir%/plot.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
154 %reldir%/poly.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
155 %reldir%/preface.texi \
24549
2c497be89710 doc: Create new Graphic Properties Index (bug #52812).
Rik <rik@octave.org>
parents: 24531
diff changeset
156 %reldir%/pr-idx.texi \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
157 %reldir%/quad.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
158 %reldir%/set.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
159 %reldir%/signal.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
160 %reldir%/sparse.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
161 %reldir%/stats.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
162 %reldir%/stmt.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
163 %reldir%/strings.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
164 %reldir%/system.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
165 %reldir%/testfun.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
166 %reldir%/var.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
167 %reldir%/vectorize.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 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
170
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 BUILT_OCTAVE_TEXI_SRC = \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
172 %reldir%/contributors.texi \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 $(GRAPH_PROP_TEXI_SRC) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 $(MUNGED_TEXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 info_TEXINFOS += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
177 %reldir%/octave.texi
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179 octave_TEXINFOS = \
24531
c85871d2a10e build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents: 23495
diff changeset
180 %reldir%/macros.texi \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 $(BUILT_OCTAVE_TEXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
183 INFO_DEPS += $(srcdir)/%reldir%/octave.info
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
184 DVIS += %reldir%/octave.dvi
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
185 PDFS += %reldir%/octave.pdf
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
186 PSS += %reldir%/octave.ps
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
187 HTMLS += %reldir%/octave.html
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 ## 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
190 ## 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
191 ## 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
192 ## versions of the rules here.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
194 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
195 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
196 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
197
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
198 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
199 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
200
24945
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
201 $(srcdir)/%reldir%/octave.info: $(DOC_IMAGES_TXT) $(octave_TEXINFOS)
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
202 %reldir%/octave.dvi: $(DOC_IMAGES_EPS) $(octave_TEXINFOS)
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
203 %reldir%/octave.pdf: $(DOC_IMAGES_PDF) $(octave_TEXINFOS)
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
204 $(OCTAVE_HTML_STAMP): $(DOC_IMAGES_PNG) $(octave_TEXINFOS)
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
205
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
206 endif
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
207
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
208 ## Even if Octave was configured with --disable-docs, we will install
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
209 ## OCTAVE_QTHELP_FILES if they already exist.
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
210
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
211 ## Don't add these files to octdoc_DATA. We want custom rules for
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
212 ## installing them.
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
213 OCTAVE_QTHELP_FILES = \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
214 %reldir%/octave_interpreter.qhc \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
215 %reldir%/octave_interpreter.qch
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
216
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
217 install-data-local: install-qthelp-files
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
218
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
219 uninstall-local: uninstall-qthelp-files
24945
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
220
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
221 ## Don't depend on $(OCTAVE_QTHELP_FILES) because we don't want to fail
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
222 ## if they can't be generated, but we want to install them if they exist
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
223 ## anyway (for example, they were included with a tarball distribution
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
224 ## file).
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
225 install-qthelp-files: qthelp-installdir
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
226 @for f in $(OCTAVE_QTHELP_FILES); do \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
227 if [ -f $$f ]; then \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
228 echo " $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
229 $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
230 elif [ -f $(srcdir)/$$f ]; then \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
231 echo " $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
232 $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
233 else \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
234 echo "warning: unable to install $$f"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
235 fi; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
236 done
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
237 .PHONY: install-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
238
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
239 uninstall-qthelp-files:
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
240 for f in $(OCTAVE_QTHELP_FILES); do \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
241 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
242 rm -f $(DESTDIR)$(octdocdir)/$$base; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
243 done
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
244 .PHONY: uninstall-qthelp-files
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
245
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
246 qthelp-installdir:
26310
44670b45ff3b Avoid double slash in path to qthelp-installdir (bug #55307).
Marco Atzeri <marco.atzeri@gmail.com>
parents: 26112
diff changeset
247 $(MKDIR_P) '$(DESTDIR)$(octdocdir)'
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
248 .PHONY: qthelp-installdir
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
249
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
250 if AMCOND_BUILD_DOCS
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
251
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
252 if AMCOND_BUILD_QT_DOCS
24889
92aaa85c06b8 build: use normal automake syntax for installing Qt help (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24888
diff changeset
253
25314
159b359ccc13 use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents: 25313
diff changeset
254 ## The Qt help collection generator command produces two output files
159b359ccc13 use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents: 25313
diff changeset
255 ## with the same base name. Use a pattern rule so that GNU Make will
159b359ccc13 use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents: 25313
diff changeset
256 ## only invoke the rule once to generate both files.
159b359ccc13 use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents: 25313
diff changeset
257
159b359ccc13 use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents: 25313
diff changeset
258 %.qhc %.qch : $(OCTAVE_HTML_STAMP) $(HTMLDIR_CSS) %reldir%/mk-qthelp.pl
24888
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
259 $(AM_V_GEN)rm -f $(OCTAVE_QTHELP_FILES) && \
24955
005120381e78 maint: rename mk-qthelp.pl for consistency with other build scripts
Mike Miller <mtmiller@octave.org>
parents: 24954
diff changeset
260 $(PERL) $(srcdir)/%reldir%/mk-qthelp.pl octave.html %reldir%/octave_interpreter && \
24938
4f1da669b610 build: export and use qcollectiongenerator command line options correctly
Mike Miller <mtmiller@octave.org>
parents: 24902
diff changeset
261 $(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
262 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
263
24945
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
264 endif
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
265
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
266 $(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
267 $(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
268 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
269 rm -rf $$backupdir && mkdir $$backupdir && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 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
271 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
272 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
273 done; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
274 else :; fi && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275 cd "$$am__cwd"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 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
277 -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
278 then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279 rc=0; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 $(am__cd) $(srcdir); \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282 rc=$$?; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283 $(am__cd) $(srcdir) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
284 $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
285 fi; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
286 rm -rf $$backupdir; exit $$rc
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
287
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
288 %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
289 $(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
290 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
291 $(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
292 `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
293
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
294 %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
295 $(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
296 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
297 $(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
298 `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
299
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
300 %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
301
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
302 $(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
303 $(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
304 $(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
305 -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
306 --css-ref=octave.css \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
307 -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
308 then \
25545
d068c71d4eed build: Work around bug in perl 5.28.0 (bug #54202).
Rik <rik@octave.org>
parents: 25314
diff changeset
309 $(PERL) $(srcdir)/build-aux/inplace_edit.pl 's|(?<=</a>): ||g' $(OCTAVE_HTML_TMP_DIR)/* && \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310 rm -rf $(OCTAVE_HTML_DIR) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
311 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
312 touch $@; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
313 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
314 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
315 fi
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 $(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
318 $(AM_V_GEN)cp $< $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
319
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 DOC_TARGETS += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
321 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
322 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
323 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
324 %reldir%/octave.pdf \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
325 $(OCTAVE_HTML_STAMP) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
326 $(HTMLDIR_IMAGES) \
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
327 $(HTMLDIR_CSS)
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
328
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
329 if AMCOND_BUILD_QT_DOCS
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
330 DOC_TARGETS += \
24875
7c7b60dd4d4c Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 24549
diff changeset
331 $(OCTAVE_QTHELP_FILES)
25648
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
332
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
333 endif
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335 ## 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
336 ## building HTMLDIR_CSS work properly.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
338 doc_EXTRA_DIST += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 $(BUILT_OCTAVE_TEXI_SRC) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
340 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
341 %reldir%/TODO \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
342 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
343 %reldir%/octave.dvi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
344 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
345 %reldir%/octave.pdf \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
346 %reldir%/octave.html \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
347 $(HTMLDIR_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
348 $(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
349 $(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
350 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
351
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
352 # 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
353 # 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
354 doc-interpreter-dist-hook:
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
355 @$(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
356 @$(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
357 @$(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
358 @$(GREP) '#define HAVE_QHULL 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing QHULL library. Cannot package distribution!" ; exit 1; }
24981
8033e53e6cb4 build: disallow building source distribution without Qt offscreen OpenGL (bug #53414)
Mike Miller <mtmiller@octave.org>
parents: 24955
diff changeset
359 @$(GREP) '#define HAVE_QT_OFFSCREEN 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires Qt offscreen OpenGL rendering. Cannot package distribution!" ; exit 1; }
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES)
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 ## 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
364 ## @EXAMPLEFILE macro.
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
365 %reldir%/oop.texi: $(examples_code_SRC)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
366 %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
367
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
368 %.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
369 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
370 $(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
371 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
373 %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
374 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
375 $(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
376 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
377
28178
0689e92f8b54 build: ensure dependency between contributors.texi and preface.texi (bug #58057)
Mike Miller <mtmiller@octave.org>
parents: 26328
diff changeset
378 %reldir%/preface.texi: %reldir%/contributors.texi
0689e92f8b54 build: ensure dependency between contributors.texi and preface.texi (bug #58057)
Mike Miller <mtmiller@octave.org>
parents: 26328
diff changeset
379
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
380 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
381 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
382 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
383 cp $(srcdir)/%reldir%/contributors.texi %reldir%/contributors.texi; \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
384 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
385 fi && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
386 $(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
387 --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
388 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
389
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
390 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
391 $(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
392 $(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
393 --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
394 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395
24531
c85871d2a10e build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents: 23495
diff changeset
396 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
397 $(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
398 $(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
399 --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
400 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
402 doc_EXTRA_DIST += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
403 %reldir%/config-images.sh \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
404 %reldir%/contributors.in \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
405 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
406 %reldir%/genpropdoc.m \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
407 %reldir%/graphics_properties.mk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
408 %reldir%/images \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
409 %reldir%/images.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
410 %reldir%/images.mk \
26328
1463d55540e6 Backed out changeset d0c070f5c67a
Rik <rik@octave.org>
parents: 26326
diff changeset
411 %reldir%/macros.texi \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
412 %reldir%/mk-doc-cache.pl \
24955
005120381e78 maint: rename mk-qthelp.pl for consistency with other build scripts
Mike Miller <mtmiller@octave.org>
parents: 24954
diff changeset
413 %reldir%/mk-qthelp.pl \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
414 %reldir%/mkcontrib.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
415 %reldir%/munge-texi.pl \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 $(DOC_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 $(DOC_IMAGES_SRC) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418 $(LOGOS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 $(TXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
421 doc_MAINTAINERCLEANFILES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
422 AUTHORS \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
423 $(BUILT_DOC_IMAGES) \
25016
e8031005eb18 build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents: 24981
diff changeset
424 $(BUILT_OCTAVE_TEXI_SRC) \
e8031005eb18 build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents: 24981
diff changeset
425 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
426
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
427 ## 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
428 ## 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
429 ## 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
430 %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
431
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
432 endif
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
433
25648
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
434 ## These actions should happen even if we are not building docs
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
435
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
436 include doc/interpreter/images.mk
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
437
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
438 $(srcdir)/%reldir%/images.mk: $(srcdir)/%reldir%/config-images.sh $(srcdir)/%reldir%/images.awk $(srcdir)/%reldir%/images
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
439 $(AM_V_GEN)$(SHELL) $(srcdir)/%reldir%/config-images.sh $(top_srcdir)
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
440
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
441 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
442
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
443 ## 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
444 ## 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
445 ## 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
446 ## 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
447
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
448 doc_MAINTAINERCLEANFILES += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
449 %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
450
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
451 octetc_DATA += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
452 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
453 %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
454
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
455 %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
456 $(AM_V_GEN)rm -f $@-t $@ && \
26328
1463d55540e6 Backed out changeset d0c070f5c67a
Rik <rik@octave.org>
parents: 26326
diff changeset
457 $(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
458 mv $@-t $@
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
460 %reldir%/undocumented_list:
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 rm -f $@-t $@
25648
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
462 -cd $(srcdir)/%reldir%; $(PERL) ./doccheck/mk_undocumented_list > $(@F)-t
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 mv $@-t $@
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
464 .PHONY: %reldir%/undocumented_list
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 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
467
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
468 %.scheck: %.texi | %reldir%/$(octave_dirstamp)
25648
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
469 cd $(srcdir)/%reldir%; ./doccheck/spellcheck $(<F) > $(@F)-t
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
470 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
471 [ -s $@ ] || rm -f $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
472
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
473 spellcheck: $(SPELLCHECK_FILES)
25648
178f6d18c9a8 maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents: 25546
diff changeset
474 @cd $(srcdir)/%reldir% ; \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
475 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
476 echo "Spellcheck failed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
477 echo "Review the following files:"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
478 ls *.scheck ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
479 exit 1 ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
480 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
481 echo "Spellcheck passed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
482 fi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
483 .PHONY: spellcheck
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
484
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
485 doc-interpreter-clean:
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
486 rm -rf %reldir%/octave.t2d
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
487 rm -rf %reldir%/octave.t2p