| 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 | aven.1 \ |
|---|
| 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 | print.ini.sgml svxedit.sgml |
|---|
| 12 | |
|---|
| 13 | manual_alt = manual.txt manual.pdf |
|---|
| 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 = $(HTMLFILES) manual $(manual_alt)\ |
|---|
| 19 | survex.1.in index.htm.in\ |
|---|
| 20 | custom.dsl survex.ent\ |
|---|
| 21 | caution.png note.png\ |
|---|
| 22 | $(manual_sources) $(other_mans)\ |
|---|
| 23 | man_3dtopos.sgml man_aven.sgml man_cad3d.sgml man_cavern.sgml\ |
|---|
| 24 | man_diffpos.sgml man_extend.sgml man_sorterr.sgml\ |
|---|
| 25 | man_print.ini.sgml man_svxedit.sgml news2html.pl\ |
|---|
| 26 | version.ent version.ent.in |
|---|
| 27 | |
|---|
| 28 | NEWS.htm: ../NEWS news2html.pl |
|---|
| 29 | ./news2html.pl '@PRETTYPACKAGE@ @VERSION@' < ../NEWS > NEWS.htm |
|---|
| 30 | |
|---|
| 31 | OLDNEWS.htm: ../OLDNEWS news2html.pl |
|---|
| 32 | ./news2html.pl < ../OLDNEWS > OLDNEWS.htm |
|---|
| 33 | |
|---|
| 34 | MAINTAINERCLEANFILES = $(manual_alt) $(other_mans) NEWS.htm OLDNEWS.htm |
|---|
| 35 | |
|---|
| 36 | pkgdoc_DATA = @HTMLFILES@ $(manual_alt) |
|---|
| 37 | |
|---|
| 38 | man_MANS = survex.1 $(other_mans) |
|---|
| 39 | |
|---|
| 40 | aven.1: $(srcdir)/aven.sgml $(srcdir)/man_aven.sgml $(srcdir)/survex.ent |
|---|
| 41 | $(DOCBOOK_TO_MAN) $(srcdir)/man_aven.sgml > aven.1 |
|---|
| 42 | |
|---|
| 43 | cad3d.1: $(srcdir)/cad3d.sgml $(srcdir)/man_cad3d.sgml $(srcdir)/survex.ent |
|---|
| 44 | $(DOCBOOK_TO_MAN) $(srcdir)/man_cad3d.sgml > cad3d.1 |
|---|
| 45 | |
|---|
| 46 | cavern.1: $(srcdir)/cavern.sgml $(srcdir)/man_cavern.sgml $(srcdir)/survex.ent |
|---|
| 47 | $(DOCBOOK_TO_MAN) $(srcdir)/man_cavern.sgml > cavern.1 |
|---|
| 48 | |
|---|
| 49 | diffpos.1: $(srcdir)/diffpos.sgml $(srcdir)/man_diffpos.sgml $(srcdir)/survex.ent |
|---|
| 50 | $(DOCBOOK_TO_MAN) $(srcdir)/man_diffpos.sgml > diffpos.1 |
|---|
| 51 | |
|---|
| 52 | extend.1: $(srcdir)/extend.sgml $(srcdir)/man_extend.sgml $(srcdir)/survex.ent |
|---|
| 53 | $(DOCBOOK_TO_MAN) $(srcdir)/man_extend.sgml > extend.1 |
|---|
| 54 | |
|---|
| 55 | sorterr.1: $(srcdir)/sorterr.sgml $(srcdir)/man_sorterr.sgml $(srcdir)/survex.ent |
|---|
| 56 | $(DOCBOOK_TO_MAN) $(srcdir)/man_sorterr.sgml > sorterr.1 |
|---|
| 57 | |
|---|
| 58 | 3dtopos.1: $(srcdir)/3dtopos.sgml $(srcdir)/man_3dtopos.sgml $(srcdir)/survex.ent |
|---|
| 59 | $(DOCBOOK_TO_MAN) $(srcdir)/man_3dtopos.sgml > 3dtopos.1 |
|---|
| 60 | |
|---|
| 61 | svxedit.1: $(srcdir)/svxedit.sgml $(srcdir)/man_svxedit.sgml $(srcdir)/survex.ent |
|---|
| 62 | $(DOCBOOK_TO_MAN) $(srcdir)/man_svxedit.sgml > svxedit.1 |
|---|
| 63 | |
|---|
| 64 | print.ini.5: $(srcdir)/print.ini.sgml $(srcdir)/man_print.ini.sgml $(srcdir)/survex.ent |
|---|
| 65 | $(DOCBOOK_TO_MAN) $(srcdir)/man_print.ini.sgml > print.ini.5 |
|---|
| 66 | |
|---|
| 67 | install-data-local: manual |
|---|
| 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 |
|---|
| 74 | |
|---|
| 75 | uninstall-local: |
|---|
| 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 |
|---|
| 81 | -rmdir $(DESTDIR)$(pkgdocdir)/manual |
|---|
| 82 | |
|---|
| 83 | maintainer-clean-local: |
|---|
| 84 | rm -rf manual "$(srcdir)/manual" |
|---|
| 85 | |
|---|
| 86 | # manual, etc depend on configure.in so they get rebuilt when the |
|---|
| 87 | # version number is bumped |
|---|
| 88 | |
|---|
| 89 | manual: manual/stampfile |
|---|
| 90 | manual/stampfile: $(manual_sources) custom.dsl survex.ent ../configure.in |
|---|
| 91 | $(SGMLTOOLS) --backend=html --dsssl-spec='custom.dsl#html' manual.sgml |
|---|
| 92 | cp caution.png note.png manual |
|---|
| 93 | touch manual/stampfile |
|---|
| 94 | |
|---|
| 95 | manual.txt: $(manual_sources) survex.ent ../configure.in |
|---|
| 96 | $(SGMLTOOLS) --backend=txt manual.sgml |
|---|
| 97 | |
|---|
| 98 | manual.pdf: $(manual_sources) survex.ent ../configure.in |
|---|
| 99 | $(SGMLTOOLS) --backend=ps manual.sgml |
|---|
| 100 | ps2pdf manual.ps manual.pdf |
|---|
| 101 | rm manual.ps |
|---|
| 102 | |
|---|
| 103 | # The rules below aren't used by the build system - they're for "manual" use |
|---|
| 104 | # (ho ho) |
|---|
| 105 | |
|---|
| 106 | manual.html: $(manual_sources) custom.dsl survex.ent ../configure.in |
|---|
| 107 | $(SGMLTOOLS) --backend=onehtml \ |
|---|
| 108 | --dsssl-spec='custom.dsl#onehtml' manual.sgml |
|---|
| 109 | |
|---|
| 110 | manual.rtf: $(manual_sources) survex.ent ../configure.in |
|---|
| 111 | $(SGMLTOOLS) --backend=rtf manual.sgml |
|---|
| 112 | |
|---|
| 113 | manual.ps: $(manual_sources) survex.ent ../configure.in |
|---|
| 114 | $(SGMLTOOLS) --backend=ps manual.sgml |
|---|
| 115 | |
|---|
| 116 | CLEANFILES = usr |
|---|