| 1 | ## Process this file with automake to produce Makefile.in |
|---|
| 2 | |
|---|
| 3 | pkgdocdir = @PKGDOCDIR@ |
|---|
| 4 | |
|---|
| 5 | other_mans = cavern.1 diffpos.1 dump3d.1 extend.1 sorterr.1 survexport.1 \ |
|---|
| 6 | aven.1 |
|---|
| 7 | |
|---|
| 8 | manual_sources = manual.sgml cavern.sgml\ |
|---|
| 9 | diffpos.sgml dump3d.sgml extend.sgml sorterr.sgml survexport.sgml aven.sgml |
|---|
| 10 | |
|---|
| 11 | manual_alt = manual.txt manual.pdf |
|---|
| 12 | |
|---|
| 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. |
|---|
| 16 | EXTRA_DIST = $(HTMLFILES) manual $(manual_alt)\ |
|---|
| 17 | custom.dsl survex.ent\ |
|---|
| 18 | caution.png note.png\ |
|---|
| 19 | $(manual_sources) $(other_mans)\ |
|---|
| 20 | man_aven.sgml man_cavern.sgml man_diffpos.sgml man_dump3d.sgml \ |
|---|
| 21 | man_extend.sgml man_sorterr.sgml man_survexport.sgml\ |
|---|
| 22 | news2html.pl |
|---|
| 23 | |
|---|
| 24 | NEWS.htm: ../NEWS news2html.pl |
|---|
| 25 | ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm |
|---|
| 26 | |
|---|
| 27 | OLDNEWS.htm: ../OLDNEWS news2html.pl |
|---|
| 28 | ./news2html.pl < ../OLDNEWS > OLDNEWS.htm |
|---|
| 29 | |
|---|
| 30 | MAINTAINERCLEANFILES = $(manual_alt) $(other_mans) NEWS.htm OLDNEWS.htm |
|---|
| 31 | |
|---|
| 32 | pkgdoc_DATA = @HTMLFILES@ $(manual_alt) |
|---|
| 33 | |
|---|
| 34 | man_MANS = survex.7 $(other_mans) |
|---|
| 35 | |
|---|
| 36 | aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent |
|---|
| 37 | $(JW) -b man $(srcdir)/man_aven.sgml |
|---|
| 38 | rm -f manpage.links manpage.refs |
|---|
| 39 | |
|---|
| 40 | survexport.1: $(srcdir)/survexport.sgml $(srcdir)/man_survexport.sgml $(srcdir)/survex.ent |
|---|
| 41 | $(JW) -b man $(srcdir)/man_survexport.sgml |
|---|
| 42 | rm -f manpage.links manpage.refs |
|---|
| 43 | |
|---|
| 44 | cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent |
|---|
| 45 | $(JW) -b man $(srcdir)/man_cavern.sgml |
|---|
| 46 | rm -f manpage.links manpage.refs |
|---|
| 47 | |
|---|
| 48 | diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent |
|---|
| 49 | $(JW) -b man $(srcdir)/man_diffpos.sgml |
|---|
| 50 | rm -f manpage.links manpage.refs |
|---|
| 51 | |
|---|
| 52 | dump3d.1: $(srcdir)/dump3d.sgml $(srcdir)/man_dump3d.sgml $(srcdir)/survex.ent |
|---|
| 53 | $(JW) -b man $(srcdir)/man_dump3d.sgml |
|---|
| 54 | rm -f manpage.links manpage.refs |
|---|
| 55 | |
|---|
| 56 | extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent |
|---|
| 57 | $(JW) -b man $(srcdir)/man_extend.sgml |
|---|
| 58 | rm -f manpage.links manpage.refs |
|---|
| 59 | |
|---|
| 60 | sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent |
|---|
| 61 | $(JW) -b man $(srcdir)/man_sorterr.sgml |
|---|
| 62 | rm -f manpage.links manpage.refs |
|---|
| 63 | |
|---|
| 64 | install-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 | |
|---|
| 72 | uninstall-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 | |
|---|
| 80 | maintainer-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 | |
|---|
| 86 | manual: manual/stampfile |
|---|
| 87 | manual/stampfile: $(manual_sources) custom.dsl survex.ent ../configure.ac |
|---|
| 88 | $(JW) --backend html --dsl 'custom.dsl#html' manual.sgml |
|---|
| 89 | cp caution.png note.png manual |
|---|
| 90 | touch manual/stampfile |
|---|
| 91 | |
|---|
| 92 | manual.txt: $(manual_sources) survex.ent ../configure.ac |
|---|
| 93 | $(JW) --backend txt manual.sgml |
|---|
| 94 | |
|---|
| 95 | manual.pdf: $(manual_sources) survex.ent ../configure.ac |
|---|
| 96 | $(JW) --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 | |
|---|
| 103 | manual.html: $(manual_sources) custom.dsl survex.ent ../configure.ac |
|---|
| 104 | $(JW) --backend html --dsl 'custom.dsl#onehtml' manual.sgml > manual.html |
|---|
| 105 | |
|---|
| 106 | manual.rtf: $(manual_sources) survex.ent ../configure.ac |
|---|
| 107 | $(JW) --backend rtf manual.sgml |
|---|
| 108 | |
|---|
| 109 | manual.ps: $(manual_sources) survex.ent ../configure.ac |
|---|
| 110 | $(JW) --backend ps manual.sgml |
|---|
| 111 | |
|---|
| 112 | CLEANFILES = usr |
|---|
| 113 | |
|---|
| 114 | check-local: |
|---|
| 115 | grep -F '<!--VERSION-->$(VERSION)' '$(srcdir)/manual.sgml' |
|---|