[61653f2] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[4b4bd47] | 3 | pkgdocdir = @PKGDOCDIR@ |
---|
[2f0f34d] | 4 | |
---|
[79b32a95] | 5 | other_mans = cavern.1 diffpos.1 dump3d.1 extend.1 sorterr.1 survexport.1 \ |
---|
[2868e97] | 6 | aven.1 |
---|
[88171f5] | 7 | |
---|
[79b32a95] | 8 | manual_sources = manual.sgml cavern.sgml\ |
---|
| 9 | diffpos.sgml dump3d.sgml extend.sgml sorterr.sgml survexport.sgml aven.sgml |
---|
[6eadc5b] | 10 | |
---|
[7f24541] | 11 | manual_alt = manual.txt manual.pdf |
---|
| 12 | |
---|
[6e01b2a] | 13 | HTMLFILES= AUTHORS.htm HACKING.htm NEWS.htm OLDNEWS.htm TODO.htm index.htm \ |
---|
| 14 | 3dformat.htm 3dformat-old.htm |
---|
| 15 | |
---|
[d5ef6ad] | 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. |
---|
[c88a040] | 19 | EXTRA_DIST = $(HTMLFILES) manual $(manual_alt)\ |
---|
[6eadc5b] | 20 | custom.dsl survex.ent\ |
---|
| 21 | caution.png note.png\ |
---|
[d9c2cce] | 22 | $(manual_sources) $(other_mans)\ |
---|
[79b32a95] | 23 | man_aven.sgml man_cavern.sgml man_diffpos.sgml man_dump3d.sgml \ |
---|
| 24 | man_extend.sgml man_sorterr.sgml man_survexport.sgml\ |
---|
[2868e97] | 25 | news2html.pl |
---|
[6c7fbd5] | 26 | |
---|
[920b066] | 27 | NEWS.htm: ../NEWS news2html.pl |
---|
[0e26b3a] | 28 | ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm |
---|
[6c7fbd5] | 29 | |
---|
[920b066] | 30 | OLDNEWS.htm: ../OLDNEWS news2html.pl |
---|
[0e26b3a] | 31 | ./news2html.pl < ../OLDNEWS > OLDNEWS.htm |
---|
[61653f2] | 32 | |
---|
[7f24541] | 33 | MAINTAINERCLEANFILES = $(manual_alt) $(other_mans) NEWS.htm OLDNEWS.htm |
---|
[61653f2] | 34 | |
---|
[6e01b2a] | 35 | pkgdoc_DATA = $(HTMLFILES) $(manual_alt) |
---|
[61653f2] | 36 | |
---|
[04aa63b] | 37 | man_MANS = survex.7 $(other_mans) |
---|
[06912e7] | 38 | |
---|
[4f222d2] | 39 | aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 40 | $(JW) -b man $(srcdir)/man_aven.sgml |
---|
[2a9c909] | 41 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 42 | |
---|
[79b32a95] | 43 | survexport.1: $(srcdir)/survexport.sgml $(srcdir)/man_survexport.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 44 | $(JW) -b man $(srcdir)/man_survexport.sgml |
---|
[2a9c909] | 45 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 46 | |
---|
[4f222d2] | 47 | cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 48 | $(JW) -b man $(srcdir)/man_cavern.sgml |
---|
[2a9c909] | 49 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 50 | |
---|
[4f222d2] | 51 | diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 52 | $(JW) -b man $(srcdir)/man_diffpos.sgml |
---|
[2a9c909] | 53 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 54 | |
---|
[eda91a1] | 55 | dump3d.1: $(srcdir)/dump3d.sgml $(srcdir)/man_dump3d.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 56 | $(JW) -b man $(srcdir)/man_dump3d.sgml |
---|
[eda91a1] | 57 | rm -f manpage.links manpage.refs |
---|
| 58 | |
---|
[4f222d2] | 59 | extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 60 | $(JW) -b man $(srcdir)/man_extend.sgml |
---|
[2a9c909] | 61 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 62 | |
---|
[4f222d2] | 63 | sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 64 | $(JW) -b man $(srcdir)/man_sorterr.sgml |
---|
[2a9c909] | 65 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 66 | |
---|
[bc15c5f] | 67 | install-data-local: manual |
---|
[8f2c870] | 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 |
---|
[891796e] | 74 | |
---|
[de7f78cc] | 75 | uninstall-local: |
---|
[8f2c870] | 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 |
---|
[68927735] | 81 | -rmdir $(DESTDIR)$(pkgdocdir)/manual |
---|
[de7f78cc] | 82 | |
---|
[c746b4d] | 83 | maintainer-clean-local: |
---|
[40cb08b] | 84 | rm -rf manual "$(srcdir)/manual" |
---|
[c746b4d] | 85 | |
---|
[147b12b] | 86 | # manual, etc depend on configure.ac so they get rebuilt when the |
---|
[a5d0c88] | 87 | # version number is bumped |
---|
[ce34bd5] | 88 | |
---|
[c88a040] | 89 | manual: manual/stampfile |
---|
[147b12b] | 90 | manual/stampfile: $(manual_sources) custom.dsl survex.ent ../configure.ac |
---|
[2e56afe] | 91 | rm -rf manual |
---|
| 92 | $(JW) --backend html --dsl 'custom.dsl#html' --output manual manual.sgml |
---|
[a5d0c88] | 93 | cp caution.png note.png manual |
---|
[c88a040] | 94 | touch manual/stampfile |
---|
[61653f2] | 95 | |
---|
[147b12b] | 96 | manual.txt: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 97 | $(JW) --backend txt manual.sgml |
---|
[0fd6750] | 98 | |
---|
[147b12b] | 99 | manual.pdf: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 100 | $(JW) --backend ps manual.sgml |
---|
[0fd6750] | 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 | |
---|
[147b12b] | 107 | manual.html: $(manual_sources) custom.dsl survex.ent ../configure.ac |
---|
[a4c8d63] | 108 | $(JW) --backend html --dsl 'custom.dsl#onehtml' manual.sgml > manual.html |
---|
[61653f2] | 109 | |
---|
[147b12b] | 110 | manual.rtf: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 111 | $(JW) --backend rtf manual.sgml |
---|
[61653f2] | 112 | |
---|
[147b12b] | 113 | manual.ps: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 114 | $(JW) --backend ps manual.sgml |
---|
[2934e83] | 115 | |
---|
| 116 | CLEANFILES = usr |
---|
[6af6d51] | 117 | |
---|
| 118 | check-local: |
---|
[bb9655b] | 119 | : # Check version number in manual is up-to-date. |
---|
[a3cc8b1] | 120 | grep -F '<!--VERSION-->$(VERSION)' '$(srcdir)/manual.sgml' |
---|
[bb9655b] | 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}' |
---|