[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 | |
---|
[d5ef6ad] | 13 | # People can build from git without docbook-utils installed but they won't be |
---|
| 14 | # able to "make dist", which is arguably a good thing - we don't want tarballs |
---|
| 15 | # accidentally lacking the documentation. |
---|
[c88a040] | 16 | EXTRA_DIST = $(HTMLFILES) manual $(manual_alt)\ |
---|
[6eadc5b] | 17 | custom.dsl survex.ent\ |
---|
| 18 | caution.png note.png\ |
---|
[d9c2cce] | 19 | $(manual_sources) $(other_mans)\ |
---|
[79b32a95] | 20 | man_aven.sgml man_cavern.sgml man_diffpos.sgml man_dump3d.sgml \ |
---|
| 21 | man_extend.sgml man_sorterr.sgml man_survexport.sgml\ |
---|
[2868e97] | 22 | news2html.pl |
---|
[6c7fbd5] | 23 | |
---|
[920b066] | 24 | NEWS.htm: ../NEWS news2html.pl |
---|
[0e26b3a] | 25 | ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm |
---|
[6c7fbd5] | 26 | |
---|
[920b066] | 27 | OLDNEWS.htm: ../OLDNEWS news2html.pl |
---|
[0e26b3a] | 28 | ./news2html.pl < ../OLDNEWS > OLDNEWS.htm |
---|
[61653f2] | 29 | |
---|
[7f24541] | 30 | MAINTAINERCLEANFILES = $(manual_alt) $(other_mans) NEWS.htm OLDNEWS.htm |
---|
[61653f2] | 31 | |
---|
[7f24541] | 32 | pkgdoc_DATA = @HTMLFILES@ $(manual_alt) |
---|
[61653f2] | 33 | |
---|
[04aa63b] | 34 | man_MANS = survex.7 $(other_mans) |
---|
[06912e7] | 35 | |
---|
[4f222d2] | 36 | aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 37 | $(JW) -b man $(srcdir)/man_aven.sgml |
---|
[2a9c909] | 38 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 39 | |
---|
[79b32a95] | 40 | survexport.1: $(srcdir)/survexport.sgml $(srcdir)/man_survexport.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 41 | $(JW) -b man $(srcdir)/man_survexport.sgml |
---|
[2a9c909] | 42 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 43 | |
---|
[4f222d2] | 44 | cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 45 | $(JW) -b man $(srcdir)/man_cavern.sgml |
---|
[2a9c909] | 46 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 47 | |
---|
[4f222d2] | 48 | diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 49 | $(JW) -b man $(srcdir)/man_diffpos.sgml |
---|
[2a9c909] | 50 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 51 | |
---|
[eda91a1] | 52 | dump3d.1: $(srcdir)/dump3d.sgml $(srcdir)/man_dump3d.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 53 | $(JW) -b man $(srcdir)/man_dump3d.sgml |
---|
[eda91a1] | 54 | rm -f manpage.links manpage.refs |
---|
| 55 | |
---|
[4f222d2] | 56 | extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 57 | $(JW) -b man $(srcdir)/man_extend.sgml |
---|
[2a9c909] | 58 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 59 | |
---|
[4f222d2] | 60 | sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent |
---|
[d5ef6ad] | 61 | $(JW) -b man $(srcdir)/man_sorterr.sgml |
---|
[2a9c909] | 62 | rm -f manpage.links manpage.refs |
---|
[6eadc5b] | 63 | |
---|
[bc15c5f] | 64 | install-data-local: manual |
---|
[8f2c870] | 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 |
---|
[891796e] | 71 | |
---|
[de7f78c] | 72 | uninstall-local: |
---|
[8f2c870] | 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 |
---|
[68927735] | 78 | -rmdir $(DESTDIR)$(pkgdocdir)/manual |
---|
[de7f78c] | 79 | |
---|
[c746b4d] | 80 | maintainer-clean-local: |
---|
[40cb08b] | 81 | rm -rf manual "$(srcdir)/manual" |
---|
[c746b4d] | 82 | |
---|
[147b12b] | 83 | # manual, etc depend on configure.ac so they get rebuilt when the |
---|
[a5d0c88] | 84 | # version number is bumped |
---|
[ce34bd5] | 85 | |
---|
[c88a040] | 86 | manual: manual/stampfile |
---|
[147b12b] | 87 | manual/stampfile: $(manual_sources) custom.dsl survex.ent ../configure.ac |
---|
[2e56afe] | 88 | rm -rf manual |
---|
| 89 | $(JW) --backend html --dsl 'custom.dsl#html' --output manual manual.sgml |
---|
[a5d0c88] | 90 | cp caution.png note.png manual |
---|
[c88a040] | 91 | touch manual/stampfile |
---|
[61653f2] | 92 | |
---|
[147b12b] | 93 | manual.txt: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 94 | $(JW) --backend txt manual.sgml |
---|
[0fd6750] | 95 | |
---|
[147b12b] | 96 | manual.pdf: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 97 | $(JW) --backend ps manual.sgml |
---|
[0fd6750] | 98 | ps2pdf manual.ps manual.pdf |
---|
| 99 | rm manual.ps |
---|
| 100 | |
---|
| 101 | # The rules below aren't used by the build system - they're for "manual" use |
---|
| 102 | # (ho ho) |
---|
| 103 | |
---|
[147b12b] | 104 | manual.html: $(manual_sources) custom.dsl survex.ent ../configure.ac |
---|
[a4c8d63] | 105 | $(JW) --backend html --dsl 'custom.dsl#onehtml' manual.sgml > manual.html |
---|
[61653f2] | 106 | |
---|
[147b12b] | 107 | manual.rtf: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 108 | $(JW) --backend rtf manual.sgml |
---|
[61653f2] | 109 | |
---|
[147b12b] | 110 | manual.ps: $(manual_sources) survex.ent ../configure.ac |
---|
[a4c8d63] | 111 | $(JW) --backend ps manual.sgml |
---|
[2934e83] | 112 | |
---|
| 113 | CLEANFILES = usr |
---|
[6af6d51] | 114 | |
---|
| 115 | check-local: |
---|
[a3cc8b1] | 116 | grep -F '<!--VERSION-->$(VERSION)' '$(srcdir)/manual.sgml' |
---|