annotate doc/interpreter/module.mk @ 25313:ebe32e8062ab stable

install Qt help files if available The Qt help files are included in tarball distributions, so attempt to install those files even if the tools to build them are missing or Octave has been configured with --disable-docs. * doc/interpreter/module.mk (OCTAVE_QTHELP_FILES): Define list outside of automake conditionals for building docs. (install-qt-help-files, uninstall-qt-help-files, qthelp-installdir): New rules, defined outside of conditionals. (install-data-local): Also depend on install-qthelp-files. (uninstall-local): Also depend on uninstall-qthelp-files. (octdoc_DATA): Don't add $(OCTAVE_QTHELP_FILES) to the list. (DOC_TARGETS): Only add $(OCTAVE_QTHELP_FILES) to the list if AMCOND_BUILD_QT_DOCS is true.
author John W. Eaton <jwe@octave.org>
date Thu, 26 Apr 2018 04:32:32 -0400
parents dd480b75e6e8
children 159b359ccc13
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
24945
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
195 $(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
196 %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
197 %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
198 $(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
199
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
200 endif
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
201
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
202 ## 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
203 ## OCTAVE_QTHELP_FILES if they already exist.
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
204
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
205 ## 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
206 ## installing them.
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
207 OCTAVE_QTHELP_FILES = \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
208 %reldir%/octave_interpreter.qhc \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
209 %reldir%/octave_interpreter.qch
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 install-data-local: install-qthelp-files
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
212
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
213 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
214
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
215 ## 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
216 ## 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
217 ## 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
218 ## file).
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
219 install-qthelp-files: qthelp-installdir
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
220 @for f in $(OCTAVE_QTHELP_FILES); do \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
221 if [ -f $$f ]; then \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
222 echo " $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
223 $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
224 elif [ -f $(srcdir)/$$f ]; then \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
225 echo " $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
226 $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
227 else \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
228 echo "warning: unable to install $$f"; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
229 fi; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
230 done
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
231 .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
232
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
233 uninstall-qthelp-files:
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
234 for f in $(OCTAVE_QTHELP_FILES); do \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
235 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
236 rm -f $(DESTDIR)$(octdocdir)/$$base; \
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
237 done
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
238 .PHONY: uninstall-qthelp-files
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
239
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
240 qthelp-installdir:
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
241 $(MKDIR_P) '$(DESTDIR)/$(octdocdir)'
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
242 .PHONY: qthelp-installdir
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
243
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
244 if AMCOND_BUILD_DOCS
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 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
247
25105
dd480b75e6e8 octave.css: Provide fallback monospace fonts (bug #53006).
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents: 25033
diff changeset
248 $(OCTAVE_QTHELP_FILES): $(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
249 $(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
250 $(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
251 $(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
252 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
253
24888
bdecc7465840 build: don't use a stamp file for Qt help generation (bug #53006)
Mike Miller <mtmiller@octave.org>
parents: 24883
diff changeset
254 ## 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
255 ## 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
256 ## 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
257 ## 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
258 %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
259
24945
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
260 endif
ba9d37893822 build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents: 24942
diff changeset
261
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
262 $(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
263 $(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
264 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
265 rm -rf $$backupdir && mkdir $$backupdir && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
266 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
267 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
268 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
269 done; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 else :; fi && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
271 cd "$$am__cwd"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
272 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
273 -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
274 then \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275 rc=0; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 $(am__cd) $(srcdir); \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
277 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
278 rc=$$?; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279 $(am__cd) $(srcdir) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281 fi; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282 rm -rf $$backupdir; exit $$rc
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
284 %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
285 $(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
286 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
287 $(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
288 `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
289
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
290 %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
291 $(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
292 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
293 $(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
294 `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
295
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
296 %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
297
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
298 $(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
299 $(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
300 $(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
301 -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
302 --css-ref=octave.css \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
303 -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
304 then \
25033
336c167b1883 doc: Strip ": " from @deftypefn expansion in HTML.
Rik <rik@octave.org>
parents: 25016
diff changeset
305 $(PERL) -i -pe '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
306 rm -rf $(OCTAVE_HTML_DIR) && \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
307 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
308 touch $@; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
309 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310 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
311 fi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
312
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
313 $(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
314 $(AM_V_GEN)cp $< $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
316 DOC_TARGETS += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
317 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
318 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
319 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
320 %reldir%/octave.pdf \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
321 $(OCTAVE_HTML_STAMP) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
322 $(HTMLDIR_IMAGES) \
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
323 $(HTMLDIR_CSS)
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
324
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
325 if AMCOND_BUILD_QT_DOCS
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
326 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
327 $(OCTAVE_QTHELP_FILES)
25313
ebe32e8062ab install Qt help files if available
John W. Eaton <jwe@octave.org>
parents: 25105
diff changeset
328 endif
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
329
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
330 ## 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
331 ## building HTMLDIR_CSS work properly.
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
332
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 doc_EXTRA_DIST += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 $(BUILT_OCTAVE_TEXI_SRC) \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
335 $(srcdir)/%reldir%/octave.info \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
336 %reldir%/TODO \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
337 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
338 %reldir%/octave.dvi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
339 %reldir%/octave.ps \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
340 %reldir%/octave.pdf \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
341 %reldir%/octave.html \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342 $(HTMLDIR_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343 $(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
344 $(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
345 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
347 # 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
348 # 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
349 doc-interpreter-dist-hook:
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
350 @$(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
351 @$(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
352 @$(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
353 @$(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
354 @$(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
355
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
356 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
357
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
358 ## 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
359 ## @EXAMPLEFILE macro.
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
360 %reldir%/oop.texi: $(examples_code_SRC)
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
361 %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
362
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
363 %.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
364 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
365 $(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
366 mv $@-t $@
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 %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
369 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
370 $(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
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 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
374 $(AM_V_MAKEINFO)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
375 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
376 cp $(srcdir)/%reldir%/contributors.texi %reldir%/contributors.texi; \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
377 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
378 fi && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
379 $(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
380 --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
381 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
382
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
383 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
384 $(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
385 $(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
386 --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
387 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
388
24531
c85871d2a10e build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents: 23495
diff changeset
389 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
390 $(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
391 $(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
392 --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
393 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
394
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 doc_EXTRA_DIST += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
396 %reldir%/config-images.sh \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
397 %reldir%/contributors.in \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
398 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
399 %reldir%/genpropdoc.m \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
400 %reldir%/graphics_properties.mk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
401 %reldir%/images \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
402 %reldir%/images.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
403 %reldir%/images.mk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
404 %reldir%/macros.texi \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
405 %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
406 %reldir%/mk-qthelp.pl \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
407 %reldir%/mkcontrib.awk \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
408 %reldir%/munge-texi.pl \
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 $(DOC_IMAGES) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 $(DOC_IMAGES_SRC) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411 $(LOGOS) \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412 $(TXI_SRC)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414 doc_MAINTAINERCLEANFILES += \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 AUTHORS \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 $(BUILT_DOC_IMAGES) \
25016
e8031005eb18 build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents: 24981
diff changeset
417 $(BUILT_OCTAVE_TEXI_SRC) \
e8031005eb18 build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents: 24981
diff changeset
418 $(OCTAVE_QTHELP_FILES)
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420 ## 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
421 ## 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
422 ## 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
423 %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
424
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
425 endif
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
426
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
427 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
428
22158
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
429 ## 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
430 ## 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
431 ## 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
432 ## 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
433
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
434 doc_MAINTAINERCLEANFILES += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
435 %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
436
623b556e9d45 always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents: 22156
diff changeset
437 octetc_DATA += \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
438 %reldir%/doc-cache \
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
439 %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
440
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
441 %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
442 $(AM_V_GEN)rm -f $@-t $@ && \
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
443 $(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
444 mv $@-t $@
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
445
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
446 %reldir%/undocumented_list:
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
447 rm -f $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
448 -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
449 mv $@-t $@
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
450 .PHONY: %reldir%/undocumented_list
21646
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
451
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
452 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
453
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
454 %.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
455 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
456 mv $@-t $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
457 [ -s $@ ] || rm -f $@
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
458
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459 spellcheck: $(SPELLCHECK_FILES)
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
460 @cd $(srcdir)/doc/interpreter ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 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
462 echo "Spellcheck failed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 echo "Review the following files:"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
464 ls *.scheck ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465 exit 1 ; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 else \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
467 echo "Spellcheck passed"; \
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
468 fi
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
469 .PHONY: spellcheck
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
470
3cddf1e65ccf split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff changeset
471 doc-interpreter-clean:
23495
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
472 rm -rf %reldir%/octave.t2d
8308417aff1c use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents: 22475
diff changeset
473 rm -rf %reldir%/octave.t2p