Mercurial > octave
annotate doc/interpreter/module.mk @ 31583:24b71381cbfa stable
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
* octave.texi: Use @include to include new "octave-doc-version.texi" file with
EDITION variable. Use @value{EDITION} in @subtitle macro to avoid having to
manually change text for every release.
* doc/interpreter/module.mk: New rule to build "octave-doc-version.texi" which
depends on "version-octave.texi" that is created by Automake. Change
documentation target rules for .info, .dvi, .pdf, .html to depend on
"octave-doc-version.texi". Add new file to doc_EXTRA_DIST and
doc_MAINTAINERCLEANFILES to distribute it in tarball and to clean it up.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Nov 2022 19:54:09 -0800 |
parents | 473ac0a602b9 |
children | e863066429f1 |
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 \ |
28658
c49a546a745a
Better documentation for legend objects (bug #57254)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
28178
diff
changeset
|
7 %reldir%/plot-legendproperties.texi \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
8 %reldir%/plot-lightproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
9 %reldir%/plot-lineproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
10 %reldir%/plot-patchproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
11 %reldir%/plot-rootproperties.texi \ |
28286
496735a910c1
Add graphics object "scatter" (bug #58282).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28178
diff
changeset
|
12 %reldir%/plot-scatterproperties.texi \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
13 %reldir%/plot-surfaceproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
14 %reldir%/plot-textproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
15 %reldir%/plot-uimenuproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
16 %reldir%/plot-uibuttongroupproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
17 %reldir%/plot-uicontextmenuproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
18 %reldir%/plot-uipanelproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
19 %reldir%/plot-uicontrolproperties.texi \ |
26112
36e0e5b428e7
Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents:
25648
diff
changeset
|
20 %reldir%/plot-uitableproperties.texi \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
21 %reldir%/plot-uitoolbarproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
22 %reldir%/plot-uipushtoolproperties.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
23 %reldir%/plot-uitoggletoolproperties.texi |
21646
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 $(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
|
26 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 define gen-propdoc-texi |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 rm -f $@-t $@ && \ |
30277
f816a8c44924
allow build to succeed when address sanitizer is enabled (bug #61415)
John W. Eaton <jwe@octave.org>
parents:
28659
diff
changeset
|
29 $(SHELL) run-octave -disable-asan --norc --silent --no-history --path $(srcdir)/doc/interpreter --eval "genpropdoc ('$(1)');" > $@-t && \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 endef |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
33 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
|
34 |
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
35 %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
|
36 $(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
|
37 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
38 %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
|
39 $(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
|
40 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
41 %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
|
42 $(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
|
43 |
28658
c49a546a745a
Better documentation for legend objects (bug #57254)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
28178
diff
changeset
|
44 %reldir%/plot-legendproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC) |
c49a546a745a
Better documentation for legend objects (bug #57254)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
28178
diff
changeset
|
45 $(AM_V_GEN)$(call gen-propdoc-texi,legend) |
c49a546a745a
Better documentation for legend objects (bug #57254)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
28178
diff
changeset
|
46 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
47 %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
|
48 $(AM_V_GEN)$(call gen-propdoc-texi,light) |
6afdf40be534
Implement graphics object "light" (patch #8943).
mmuetzel <markus.muetzel@gmx.de>
parents:
21646
diff
changeset
|
49 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
50 %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
|
51 $(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
|
52 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
53 %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
|
54 $(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
|
55 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
56 %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
|
57 $(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
|
58 |
28286
496735a910c1
Add graphics object "scatter" (bug #58282).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28178
diff
changeset
|
59 %reldir%/plot-scatterproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC) |
496735a910c1
Add graphics object "scatter" (bug #58282).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28178
diff
changeset
|
60 $(AM_V_GEN)$(call gen-propdoc-texi,scatter) |
496735a910c1
Add graphics object "scatter" (bug #58282).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28178
diff
changeset
|
61 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
62 %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
|
63 $(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
|
64 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
65 %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
|
66 $(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
|
67 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
68 %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
|
69 $(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
|
70 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
71 %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
|
72 $(AM_V_GEN)$(call gen-propdoc-texi,uibuttongroup) |
6780a8657be3
Implement uibuttongroup (bug #47513)
Andrew Thornton <art27@cantab.net>
parents:
21789
diff
changeset
|
73 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
74 %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
|
75 $(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
|
76 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
77 %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
|
78 $(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
|
79 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
80 %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
|
81 $(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
|
82 |
26112
36e0e5b428e7
Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents:
25648
diff
changeset
|
83 %reldir%/plot-uitableproperties.texi: %reldir%/genpropdoc.m $(GRAPHICS_PROPS_SRC) |
36e0e5b428e7
Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents:
25648
diff
changeset
|
84 $(AM_V_GEN)$(call gen-propdoc-texi,uitable) |
36e0e5b428e7
Implement uitable (patch #9084)
Andrew Thornton <art27@cantab.net>
parents:
25648
diff
changeset
|
85 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
86 %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
|
87 $(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
|
88 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
89 %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
|
90 $(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
|
91 |
25358
8cac064e6623
Build graphic property texi files when source is changed (bug #53805).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
92 %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
|
93 $(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
|
94 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 dist_man_MANS = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
96 %reldir%/mkoctfile.1 \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
97 %reldir%/octave-cli.1 \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
98 %reldir%/octave-config.1 \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
99 %reldir%/octave.1 |
21646
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 += \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
102 $(BUILT_DOC_IMAGES_EPS) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 $(BUILT_DOC_IMAGES_PDF) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 $(BUILT_DOC_IMAGES_PNG) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 $(BUILT_DOC_IMAGES_TXT) |
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 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
|
108 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
|
109 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
|
110 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
|
111 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 DOC_IMAGES += \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 $(BUILT_DOC_IMAGES) |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
114 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
115 $(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
|
116 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
117 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
|
118 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
119 LOGOS = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
120 %reldir%/octave_logo.eps \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
121 %reldir%/octave_logo.pdf |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
123 DOC_IMAGES_EPS += %reldir%/octave_logo.eps |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
124 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
|
125 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
126 MUNGED_TEXI_SRC = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
127 %reldir%/arith.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
128 %reldir%/audio.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
129 %reldir%/basics.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
130 %reldir%/bugs.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
131 %reldir%/container.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
132 %reldir%/cp-idx.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
133 %reldir%/data.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
134 %reldir%/debug.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
135 %reldir%/diffeq.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
136 %reldir%/diagperm.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
137 %reldir%/external.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
138 %reldir%/errors.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
139 %reldir%/eval.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
140 %reldir%/expr.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
141 %reldir%/fn-idx.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
142 %reldir%/func.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
143 %reldir%/geometry.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
144 %reldir%/gui.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
145 %reldir%/gpl.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
146 %reldir%/grammar.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
147 %reldir%/image.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
148 %reldir%/install.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
149 %reldir%/interp.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
150 %reldir%/intro.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
151 %reldir%/io.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
152 %reldir%/linalg.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
153 %reldir%/matrix.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
154 %reldir%/nonlin.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
155 %reldir%/numbers.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
156 %reldir%/obsolete.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
157 %reldir%/oop.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
158 %reldir%/op-idx.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
159 %reldir%/optim.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
160 %reldir%/package.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
161 %reldir%/plot.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
162 %reldir%/poly.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
163 %reldir%/preface.texi \ |
24549
2c497be89710
doc: Create new Graphic Properties Index (bug #52812).
Rik <rik@octave.org>
parents:
24531
diff
changeset
|
164 %reldir%/pr-idx.texi \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
165 %reldir%/quad.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
166 %reldir%/set.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
167 %reldir%/signal.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
168 %reldir%/sparse.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
169 %reldir%/stats.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
170 %reldir%/stmt.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
171 %reldir%/strings.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
172 %reldir%/system.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
173 %reldir%/testfun.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
174 %reldir%/var.texi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
175 %reldir%/vectorize.texi |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
176 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
177 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
|
178 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
179 BUILT_OCTAVE_TEXI_SRC = \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
180 %reldir%/contributors.texi \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
181 $(GRAPH_PROP_TEXI_SRC) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
182 $(MUNGED_TEXI_SRC) |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
183 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
184 info_TEXINFOS += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
185 %reldir%/octave.texi |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
186 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
187 octave_TEXINFOS = \ |
24531
c85871d2a10e
build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents:
23495
diff
changeset
|
188 %reldir%/macros.texi \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
189 $(BUILT_OCTAVE_TEXI_SRC) |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
190 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
191 INFO_DEPS += $(srcdir)/%reldir%/octave.info |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
192 DVIS += %reldir%/octave.dvi |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
193 PDFS += %reldir%/octave.pdf |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
194 PSS += %reldir%/octave.ps |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
195 HTMLS += %reldir%/octave.html |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
196 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
197 ## 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
|
198 ## 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
|
199 ## 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
|
200 ## versions of the rules here. |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
201 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
202 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
|
203 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
|
204 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
|
205 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
206 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
|
207 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
|
208 |
24945
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24942
diff
changeset
|
209 $(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
|
210 %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
|
211 %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
|
212 $(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
|
213 |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
214 endif |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
215 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
216 ## 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
|
217 ## OCTAVE_QTHELP_FILES if they already exist. |
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 ## 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
|
220 ## installing them. |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
221 OCTAVE_QTHELP_FILES = \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
222 %reldir%/octave_interpreter.qhc \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
223 %reldir%/octave_interpreter.qch |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
224 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
225 install-data-local: install-qthelp-files |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
226 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
227 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
|
228 |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
229 ## 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
|
230 ## 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
|
231 ## 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
|
232 ## file). |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
233 install-qthelp-files: qthelp-installdir |
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 if [ -f $$f ]; then \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
236 echo " $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'"; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
237 $(INSTALL_DATA) $$f '$(DESTDIR)$(octdocdir)'; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
238 elif [ -f $(srcdir)/$$f ]; then \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
239 echo " $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'"; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
240 $(INSTALL_DATA) $(srcdir)/$$f '$(DESTDIR)$(octdocdir)'; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
241 else \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
242 echo "warning: unable to install $$f"; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
243 fi; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
244 done |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
245 .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
|
246 |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
247 uninstall-qthelp-files: |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
248 for f in $(OCTAVE_QTHELP_FILES); do \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
249 base=`echo $$f | $(SED) 's,^%reldir%/,,'`; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
250 rm -f $(DESTDIR)$(octdocdir)/$$base; \ |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
251 done |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
252 .PHONY: uninstall-qthelp-files |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
253 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
254 qthelp-installdir: |
26310
44670b45ff3b
Avoid double slash in path to qthelp-installdir (bug #55307).
Marco Atzeri <marco.atzeri@gmail.com>
parents:
26112
diff
changeset
|
255 $(MKDIR_P) '$(DESTDIR)$(octdocdir)' |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
256 .PHONY: qthelp-installdir |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
257 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
258 if AMCOND_BUILD_DOCS |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
259 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
260 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
|
261 |
25314
159b359ccc13
use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents:
25313
diff
changeset
|
262 ## 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
|
263 ## 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
|
264 ## 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
|
265 |
159b359ccc13
use pattern rule to make Qt help files
John W. Eaton <jwe@octave.org>
parents:
25313
diff
changeset
|
266 %.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
|
267 $(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
|
268 $(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
|
269 $(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
|
270 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
|
271 |
24945
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24942
diff
changeset
|
272 endif |
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24942
diff
changeset
|
273 |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
274 # Create a version file where EDITION variable only holds MAJOR number |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
275 $(srcdir)/%reldir%/octave-doc-version.texi: $(srcdir)/%reldir%/version-octave.texi |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
276 $(AM_V_GEN)rm -f $@-t $@ ; \ |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
277 $(SED) 's#\(@set EDITION [0-9]\+\)\..*$$#\1#' $(srcdir)/%reldir%/version-octave.texi > $@-t ; \ |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
278 mv $@-t $@ |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
279 |
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
280 $(srcdir)/%reldir%/octave.info: %reldir%/octave.texi $(srcdir)/%reldir%/octave-doc-version.texi |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
281 $(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
|
282 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
|
283 rm -rf $$backupdir && mkdir $$backupdir && \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
284 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
|
285 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
|
286 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
|
287 done; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
288 else :; fi && \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
289 cd "$$am__cwd"; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
290 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
|
291 -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
|
292 then \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
293 rc=0; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
294 $(am__cd) $(srcdir); \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
295 else \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
296 rc=$$?; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
297 $(am__cd) $(srcdir) && \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
298 $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
299 fi; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
300 rm -rf $$backupdir; exit $$rc |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
301 |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
302 %reldir%/octave.dvi: %reldir%/octave.texi $(srcdir)/%reldir%/octave-doc-version.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_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
|
304 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
|
305 $(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
|
306 `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
|
307 |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
308 %reldir%/octave.pdf: %reldir%/octave.texi $(srcdir)/%reldir%/octave-doc-version.texi | %reldir%/$(am__dirstamp) |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
309 $(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
|
310 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
|
311 $(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
|
312 `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
|
313 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
314 %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
|
315 |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
316 $(OCTAVE_HTML_STAMP): %reldir%/octave.texi $(srcdir)/%reldir%/octave-doc-version.texi | %reldir%/$(am__dirstamp) |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
317 $(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
|
318 $(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
|
319 -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
|
320 --css-ref=octave.css \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
321 -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
|
322 then \ |
25545
d068c71d4eed
build: Work around bug in perl 5.28.0 (bug #54202).
Rik <rik@octave.org>
parents:
25314
diff
changeset
|
323 $(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
|
324 rm -rf $(OCTAVE_HTML_DIR) && \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
325 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
|
326 touch $@; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
327 else \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
328 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
|
329 fi |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
330 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
331 $(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
|
332 $(AM_V_GEN)cp $< $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
333 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
334 DOC_TARGETS += \ |
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%/doc-cache \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
337 %reldir%/octave.ps \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
338 %reldir%/octave.pdf \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
339 $(OCTAVE_HTML_STAMP) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
340 $(HTMLDIR_IMAGES) \ |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
341 $(HTMLDIR_CSS) |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
342 |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
343 if AMCOND_BUILD_QT_DOCS |
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
344 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
|
345 $(OCTAVE_QTHELP_FILES) |
25648
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
346 |
25313
ebe32e8062ab
install Qt help files if available
John W. Eaton <jwe@octave.org>
parents:
25105
diff
changeset
|
347 endif |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
348 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
349 ## 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
|
350 ## building HTMLDIR_CSS work properly. |
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 doc_EXTRA_DIST += \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
353 $(BUILT_OCTAVE_TEXI_SRC) \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
354 $(srcdir)/%reldir%/octave.info \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
355 %reldir%/doc-cache \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
356 %reldir%/octave.dvi \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
357 %reldir%/octave.ps \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
358 %reldir%/octave.pdf \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
359 %reldir%/octave.html \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
360 $(HTMLDIR_IMAGES) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
361 $(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
|
362 $(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
|
363 $(OCTAVE_QTHELP_FILES) |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
364 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
365 # 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
|
366 # 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
|
367 doc-interpreter-dist-hook: |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
368 @$(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
|
369 @$(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
|
370 @$(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
|
371 @$(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
|
372 @$(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
|
373 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
374 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES) |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
375 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
376 ## 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
|
377 ## @EXAMPLEFILE macro. |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
378 %reldir%/oop.texi: $(examples_code_SRC) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
379 %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
|
380 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
381 %.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
|
382 $(AM_V_GEN)rm -f $@-t $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
383 $(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
|
384 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
385 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
386 %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
|
387 $(AM_V_GEN)rm -f $@-t $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
388 $(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
|
389 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
390 |
28178
0689e92f8b54
build: ensure dependency between contributors.texi and preface.texi (bug #58057)
Mike Miller <mtmiller@octave.org>
parents:
26328
diff
changeset
|
391 %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
|
392 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
393 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
|
394 $(AM_V_MAKEINFO)rm -f $@-t $@ && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
395 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
|
396 cp $(srcdir)/%reldir%/contributors.texi %reldir%/contributors.texi; \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
397 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
|
398 fi && \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
399 $(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
|
400 --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
|
401 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
402 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
403 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
|
404 $(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
|
405 $(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
|
406 --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
|
407 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
408 |
24531
c85871d2a10e
build: Add dependency on macros.texi for documentation.
Rik <rik@octave.org>
parents:
23495
diff
changeset
|
409 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
|
410 $(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
|
411 $(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
|
412 --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
|
413 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
414 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
415 doc_EXTRA_DIST += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
416 %reldir%/config-images.sh \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
417 %reldir%/contributors.in \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
418 %reldir%/doc-cache \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
419 %reldir%/genpropdoc.m \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
420 %reldir%/graphics_properties.mk \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
421 %reldir%/images \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
422 %reldir%/images.awk \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
423 %reldir%/images.mk \ |
26328 | 424 %reldir%/macros.texi \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
425 %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
|
426 %reldir%/mk-qthelp.pl \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
427 %reldir%/mkcontrib.awk \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
428 %reldir%/munge-texi.pl \ |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
429 %reldir%/octave-doc-version.texi \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
430 $(DOC_IMAGES) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
431 $(DOC_IMAGES_SRC) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
432 $(LOGOS) \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
433 $(TXI_SRC) |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
434 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
435 doc_MAINTAINERCLEANFILES += \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
436 AUTHORS \ |
31583
24b71381cbfa
doc: Use Makefile rules to auto-generate EDITION Texinfo variable for octave.texi
Rik <rik@octave.org>
parents:
31258
diff
changeset
|
437 %reldir%/octave-doc-version.texi \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
438 $(BUILT_DOC_IMAGES) \ |
25016
e8031005eb18
build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents:
24981
diff
changeset
|
439 $(BUILT_OCTAVE_TEXI_SRC) \ |
e8031005eb18
build: Remove Qt Help files with maintainer-clean target.
Rik <rik@octave.org>
parents:
24981
diff
changeset
|
440 $(OCTAVE_QTHELP_FILES) |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
441 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
442 ## 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
|
443 ## 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
|
444 ## 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
|
445 %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
|
446 |
22158
623b556e9d45
always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents:
22156
diff
changeset
|
447 endif |
623b556e9d45
always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents:
22156
diff
changeset
|
448 |
25648
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
449 ## 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
|
450 |
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
451 include doc/interpreter/images.mk |
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
452 |
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
453 $(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
|
454 $(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
|
455 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
456 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
|
457 |
22158
623b556e9d45
always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents:
22156
diff
changeset
|
458 ## 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
|
459 ## 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
|
460 ## 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
|
461 ## 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
|
462 |
623b556e9d45
always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents:
22156
diff
changeset
|
463 doc_MAINTAINERCLEANFILES += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
464 %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
|
465 |
623b556e9d45
always create doc-cache; install it and macros.texi (bug #48508)
John W. Eaton <jwe@octave.org>
parents:
22156
diff
changeset
|
466 octetc_DATA += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
467 %reldir%/doc-cache \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
468 %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
|
469 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
470 %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
|
471 $(AM_V_GEN)rm -f $@-t $@ && \ |
26328 | 472 $(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
|
473 mv $@-t $@ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
474 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
475 %reldir%/undocumented_list: |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
476 rm -f $@-t $@ |
25648
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
477 -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
|
478 mv $@-t $@ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
479 .PHONY: %reldir%/undocumented_list |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
480 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
481 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
|
482 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
483 %.scheck: %.texi | %reldir%/$(octave_dirstamp) |
25648
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
484 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
|
485 mv $@-t $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
486 [ -s $@ ] || rm -f $@ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
487 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
488 spellcheck: $(SPELLCHECK_FILES) |
25648
178f6d18c9a8
maint: reorganize rules for creating images.mk
John W. Eaton <jwe@octave.org>
parents:
25546
diff
changeset
|
489 @cd $(srcdir)/%reldir% ; \ |
21646
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
490 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
|
491 echo "Spellcheck failed"; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
492 echo "Review the following files:"; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
493 ls *.scheck ; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
494 exit 1 ; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
495 else \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
496 echo "Spellcheck passed"; \ |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
497 fi |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
498 .PHONY: spellcheck |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
499 |
3cddf1e65ccf
split doc/module.mk into separate files for subdirectories
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
500 doc-interpreter-clean: |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
501 rm -rf %reldir%/octave.t2d |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
22475
diff
changeset
|
502 rm -rf %reldir%/octave.t2p |