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 | printdm.1 printhpgl.1 printpcl.1 printps.1 @EXTRA_MANS@ \ |
---|
7 | print.ini.5 svxedit.1 |
---|
8 | |
---|
9 | manual_sources = manual.sgml cad3d.sgml cavern.sgml\ |
---|
10 | diffpos.sgml extend.sgml sorterr.sgml 3dtopos.sgml aven.sgml\ |
---|
11 | caverot.sgml xcaverot.sgml\ |
---|
12 | printdm.sgml printhpgl.sgml printpcl.sgml printps.sgml printwin.sgml\ |
---|
13 | print.ini.sgml svxedit.sgml |
---|
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 = manual $(HTMLFILES) $(DOCS_OTHER) survex.1.in index.htm.in\ |
---|
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_xcaverot.sgml\ |
---|
25 | man_printdm.sgml man_printhpgl.sgml man_printpcl.sgml man_printps.sgml\ |
---|
26 | man_print.ini.sgml man_svxedit.sgml news2html.pl\ |
---|
27 | version.ent version.ent.in |
---|
28 | |
---|
29 | NEWS.htm: ../NEWS |
---|
30 | ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm |
---|
31 | |
---|
32 | OLDNEWS.htm: ../OLDNEWS |
---|
33 | ./news2html.pl < ../OLDNEWS > OLDNEWS.htm |
---|
34 | |
---|
35 | MAINTAINERCLEANFILES = @DOCS_OTHER@ $(other_mans)\ |
---|
36 | ChngeLog.htm NEWS.htm OLDNEWS.htm |
---|
37 | |
---|
38 | pkgdoc_DATA = @HTMLFILES@ @DOCS_OTHER@ |
---|
39 | |
---|
40 | man_MANS = survex.1 $(other_mans) |
---|
41 | |
---|
42 | aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent |
---|
43 | docbook-to-man $(srcdir)/man_aven.sgml > aven.1 |
---|
44 | |
---|
45 | cad3d.1: $(srcdir)/cad3d.sgml $(srcdir)/man_cad3d.sgml $(srcdir)/survex.ent |
---|
46 | docbook-to-man $(srcdir)/man_cad3d.sgml > cad3d.1 |
---|
47 | |
---|
48 | cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent |
---|
49 | docbook-to-man $(srcdir)/man_cavern.sgml > cavern.1 |
---|
50 | |
---|
51 | caverot.1: $(srcdir)/caverot.sgml $(srcdir)/man_caverot.sgml $(srcdir)/survex.ent |
---|
52 | docbook-to-man $(srcdir)/man_caverot.sgml > caverot.1 |
---|
53 | |
---|
54 | diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent |
---|
55 | docbook-to-man $(srcdir)/man_diffpos.sgml > diffpos.1 |
---|
56 | |
---|
57 | extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent |
---|
58 | docbook-to-man $(srcdir)/man_extend.sgml > extend.1 |
---|
59 | |
---|
60 | printdm.1: $(srcdir)/printdm.sgml $(srcdir)/man_printdm.sgml $(srcdir)/survex.ent |
---|
61 | docbook-to-man $(srcdir)/man_printdm.sgml > printdm.1 |
---|
62 | |
---|
63 | printhpgl.1: $(srcdir)/printhpgl.sgml $(srcdir)/man_printhpgl.sgml $(srcdir)/survex.ent |
---|
64 | docbook-to-man $(srcdir)/man_printhpgl.sgml > printhpgl.1 |
---|
65 | |
---|
66 | printpcl.1: $(srcdir)/printpcl.sgml $(srcdir)/man_printpcl.sgml $(srcdir)/survex.ent |
---|
67 | docbook-to-man $(srcdir)/man_printpcl.sgml > printpcl.1 |
---|
68 | |
---|
69 | printps.1: $(srcdir)/printps.sgml $(srcdir)/man_printps.sgml $(srcdir)/survex.ent |
---|
70 | docbook-to-man $(srcdir)/man_printps.sgml > printps.1 |
---|
71 | |
---|
72 | sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent |
---|
73 | docbook-to-man $(srcdir)/man_sorterr.sgml > sorterr.1 |
---|
74 | |
---|
75 | 3dtopos.1: $(srcdir)/3dtopos.sgml $(srcdir)/man_3dtopos.sgml $(srcdir)/survex.ent |
---|
76 | docbook-to-man $(srcdir)/man_3dtopos.sgml > 3dtopos.1 |
---|
77 | |
---|
78 | xcaverot.1: $(srcdir)/xcaverot.sgml $(srcdir)/man_xcaverot.sgml $(srcdir)/survex.ent |
---|
79 | docbook-to-man $(srcdir)/man_xcaverot.sgml > xcaverot.1 |
---|
80 | |
---|
81 | svxedit.1: $(srcdir)/svxedit.sgml $(srcdir)/man_svxedit.sgml $(srcdir)/survex.ent |
---|
82 | docbook-to-man $(srcdir)/man_svxedit.sgml > svxedit.1 |
---|
83 | |
---|
84 | print.ini.5: $(srcdir)/print.ini.sgml $(srcdir)/man_print.ini.sgml $(srcdir)/survex.ent |
---|
85 | docbook-to-man $(srcdir)/man_print.ini.sgml > print.ini.5 |
---|
86 | |
---|
87 | install-data-local: manual |
---|
88 | $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/manual |
---|
89 | test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \ |
---|
90 | for p in manual/*.htm manual/*.png ; do \ |
---|
91 | echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p"; \ |
---|
92 | $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdocdir)/$$p; \ |
---|
93 | done |
---|
94 | |
---|
95 | uninstall-local: |
---|
96 | test ! -d manual -a -d "$(srcdir)/manual" && cd $(srcdir) ; \ |
---|
97 | for p in manual/*.htm manual/*.png ; do \ |
---|
98 | echo " rm -f $(DESTDIR)$(pkgdocdir)/$$p"; \ |
---|
99 | rm -f $(DESTDIR)$(pkgdocdir)/$$p; \ |
---|
100 | done |
---|
101 | -rmdir $(DESTDIR)$(pkgdocdir)/manual |
---|
102 | |
---|
103 | maintainer-clean-local: |
---|
104 | rm -rf manual "$(srcdir)/manual" |
---|
105 | |
---|
106 | # manual, etc depend on configure.in so they get rebuilt when the |
---|
107 | # version number is bumped |
---|
108 | |
---|
109 | manual: $(manual_sources) custom.dsl survex.ent ../configure.in |
---|
110 | @sgmltools@ --backend=html --dsssl-spec='custom.dsl#html' manual.sgml |
---|
111 | cp caution.png note.png manual |
---|
112 | |
---|
113 | # this rule is not used by the build system - it's for "manual" use (ho ho) |
---|
114 | manual.html: $(manual_sources) custom.dsl survex.ent ../configure.in |
---|
115 | @sgmltools@ --backend=onehtml \ |
---|
116 | --dsssl-spec='custom.dsl#onehtml' manual.sgml |
---|
117 | |
---|
118 | manual.rtf: $(manual_sources) survex.ent ../configure.in |
---|
119 | @sgmltools@ --backend=rtf manual.sgml |
---|
120 | |
---|
121 | manual.txt: $(manual_sources) survex.ent ../configure.in |
---|
122 | @sgmltools@ --backend=txt manual.sgml |
---|
123 | |
---|
124 | manual.ps: $(manual_sources) survex.ent ../configure.in |
---|
125 | @sgmltools@ --backend=ps manual.sgml |
---|
126 | |
---|
127 | CLEANFILES = usr |
---|