source: git/doc/Makefile.am @ 57fceef

stereo-2025warn-only-for-hanging-survey
Last change on this file since 57fceef was bb9655b, checked in by Olly Betts <olly@…>, 12 months ago

Fix HTML filename for CMAP manual chapter

This had a duplicate filename of walls.htm which caused the actual
Walls chapter to be overwritten and the paging links to be messed
up. Reported by Eric C. Landgraf.

  • Property mode set to 100644
File size: 4.1 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3pkgdocdir = @PKGDOCDIR@
4
5other_mans = cavern.1 diffpos.1 dump3d.1 extend.1 sorterr.1 survexport.1 \
6 aven.1
7
8manual_sources = manual.sgml cavern.sgml\
9 diffpos.sgml dump3d.sgml extend.sgml sorterr.sgml survexport.sgml aven.sgml
10
11manual_alt = manual.txt manual.pdf
12
13HTMLFILES= AUTHORS.htm HACKING.htm NEWS.htm OLDNEWS.htm TODO.htm index.htm \
14 3dformat.htm 3dformat-old.htm
15
16# People can build from git without docbook-utils installed but they won't be
17# able to "make dist", which is arguably a good thing - we don't want tarballs
18# accidentally lacking the documentation.
19EXTRA_DIST = $(HTMLFILES) manual $(manual_alt)\
20 custom.dsl survex.ent\
21 caution.png note.png\
22 $(manual_sources) $(other_mans)\
23 man_aven.sgml man_cavern.sgml man_diffpos.sgml man_dump3d.sgml \
24 man_extend.sgml man_sorterr.sgml man_survexport.sgml\
25 news2html.pl
26
27NEWS.htm: ../NEWS news2html.pl
28        ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm
29
30OLDNEWS.htm: ../OLDNEWS news2html.pl
31        ./news2html.pl < ../OLDNEWS > OLDNEWS.htm
32
33MAINTAINERCLEANFILES = $(manual_alt) $(other_mans) NEWS.htm OLDNEWS.htm
34
35pkgdoc_DATA = $(HTMLFILES) $(manual_alt)
36
37man_MANS = survex.7 $(other_mans)
38
39aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent
40        $(JW) -b man $(srcdir)/man_aven.sgml
41        rm -f manpage.links manpage.refs
42
43survexport.1: $(srcdir)/survexport.sgml $(srcdir)/man_survexport.sgml $(srcdir)/survex.ent
44        $(JW) -b man $(srcdir)/man_survexport.sgml
45        rm -f manpage.links manpage.refs
46
47cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent
48        $(JW) -b man $(srcdir)/man_cavern.sgml
49        rm -f manpage.links manpage.refs
50
51diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent
52        $(JW) -b man $(srcdir)/man_diffpos.sgml
53        rm -f manpage.links manpage.refs
54
55dump3d.1: $(srcdir)/dump3d.sgml $(srcdir)/man_dump3d.sgml $(srcdir)/survex.ent
56        $(JW) -b man $(srcdir)/man_dump3d.sgml
57        rm -f manpage.links manpage.refs
58
59extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent
60        $(JW) -b man $(srcdir)/man_extend.sgml
61        rm -f manpage.links manpage.refs
62
63sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent
64        $(JW) -b man $(srcdir)/man_sorterr.sgml
65        rm -f manpage.links manpage.refs
66
67install-data-local: manual
68        $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/manual
69        test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \
70        for p in manual/*.htm manual/*.png ; do \
71          echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p"; \
72          $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p; \
73        done
74
75uninstall-local:
76        test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \
77        for p in manual/*.htm manual/*.png ; do \
78          echo " rm -f $(DESTDIR)$(pkgdocdir)/$$p"; \
79          rm -f $(DESTDIR)$(pkgdocdir)/$$p; \
80        done
81        -rmdir $(DESTDIR)$(pkgdocdir)/manual
82
83maintainer-clean-local:
84        rm -rf manual "$(srcdir)/manual"
85
86# manual, etc depend on configure.ac so they get rebuilt when the
87# version number is bumped
88
89manual: manual/stampfile
90manual/stampfile: $(manual_sources) custom.dsl survex.ent ../configure.ac
91        rm -rf manual
92        $(JW) --backend html --dsl 'custom.dsl#html' --output manual manual.sgml
93        cp caution.png note.png manual
94        touch manual/stampfile
95
96manual.txt: $(manual_sources) survex.ent ../configure.ac
97        $(JW) --backend txt manual.sgml
98
99manual.pdf: $(manual_sources) survex.ent ../configure.ac
100        $(JW) --backend ps manual.sgml
101        ps2pdf manual.ps manual.pdf
102        rm manual.ps
103
104# The rules below aren't used by the build system - they're for "manual" use
105# (ho ho)
106
107manual.html: $(manual_sources) custom.dsl survex.ent ../configure.ac
108        $(JW) --backend html --dsl 'custom.dsl#onehtml' manual.sgml > manual.html
109
110manual.rtf: $(manual_sources) survex.ent ../configure.ac
111        $(JW) --backend rtf manual.sgml
112
113manual.ps: $(manual_sources) survex.ent ../configure.ac
114        $(JW) --backend ps manual.sgml
115
116CLEANFILES = usr
117
118check-local:
119        : # Check version number in manual is up-to-date.
120        grep -F '<!--VERSION-->$(VERSION)' '$(srcdir)/manual.sgml'
121        : # Check there aren't duplicate HTML filenames in the manual.
122        grep 'dbhtml filename' $(srcdir)/manual.sgml|sort|uniq -c|awk '$1>1{print;exit 1}'
Note: See TracBrowser for help on using the repository browser.