source: git/doc/Makefile.am @ e63994c

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since e63994c was 2a9c909, checked in by Olly Betts <olly@…>, 9 years ago

Use docbook2man instead of docbook-to-man

The latter seems to be no longer actively maintained, and docbook2man
now does a similarly good job. It is also available in homebrew, which
docbook-to-man isn't.

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