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