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