1## Process this file with automake to produce Makefile.in 2 3# Package: am-utils 4# Level: Makefile for doc/ directory 5# Author: Erez Zadok 6 7@SET_MAKE@ 8 9info_TEXINFOS = am-utils.texi 10 11EXTRA_DIST = hlfsd.ps 12 13# force generation of 'letter' format PS and embed Type-3 fonts 14# (our European allies may object...) 15DVIPS = dvips -t letter -Pcmz 16 17# Force version.texi to be rebuilt regardless of maintainer mode 18$(srcdir)/version.texi: am-utils.texi $(top_srcdir)/configure.ac 19 @(set `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/am-utils.texi`; \ 20 echo "@set UPDATED $$1 $$2 $$3"; \ 21 echo "@set UPDATED-MONTH $$2 $$3"; \ 22 echo "@set EDITION $(VERSION)"; \ 23 echo "@set VERSION $(VERSION)") > vti.tmp 24 @cmp -s vti.tmp $(srcdir)/version.texi \ 25 || (echo "Updating $(srcdir)/version.texi"; \ 26 cp vti.tmp $(srcdir)/version.texi) 27 -@rm -f vti.tmp 28 29# include dvi/ps in distribution 30dist-hook: $(distdir)/am-utils.dvi $(distdir)/am-utils.ps 31 32$(distdir)/am-utils.dvi: am-utils.dvi 33 install -c -m 644 $< $@ 34 35$(distdir)/am-utils.ps: am-utils.ps 36 install -c -m 644 $< $@ 37 38# a special target for making Postscript files 39ps: am-utils.dvi am-utils.ps 40 41am-utils-clean: clean maintainer-clean-aminfo maintainer-clean-vti 42 43# personal rule for Erez Zadok to generate and install html docs 44alldocs: ps install-NEWS install-INSTALL install-ChangeLog install-AUTHORS install-tasks install-autofs install-y2k install-ldap install-osx install-BUGS install-FAQ install-html install-ps install-MIRRORS install-attrcache install-sun2amd 45 46AMU_HTML_TOP=$(HOME)/proj/www/docs/am-utils 47install-html: $(AMU_HTML_TOP)/am-utils-all.html 48$(AMU_HTML_TOP)/am-utils-all.html: am-utils.texi 49 texi2html -Verbose -expand info -number -out_file am-utils-all.html $< 50 texi2html -frames -Verbose -expand info -number -split chapter $< 51 mv am-utils-all.html am-utils/*.html $(AMU_HTML_TOP) 52 chmod -R a+r $(AMU_HTML_TOP) 53 54install-ps: $(AMU_HTML_TOP)/am-utils.ps 55$(AMU_HTML_TOP)/am-utils.ps: am-utils.ps 56 install -c -m 644 $< $@ 57 58install-NEWS: $(AMU_HTML_TOP)/NEWS.txt 59$(AMU_HTML_TOP)/NEWS.txt: $(top_srcdir)/NEWS 60 install -c -m 644 $< $@ 61 62install-INSTALL: $(AMU_HTML_TOP)/INSTALL.txt 63$(AMU_HTML_TOP)/INSTALL.txt: $(top_srcdir)/INSTALL 64 install -c -m 644 $< $@ 65 66install-ChangeLog: $(AMU_HTML_TOP)/ChangeLog.txt 67$(AMU_HTML_TOP)/ChangeLog.txt: $(top_srcdir)/ChangeLog 68 sed 's/@.*>$$/@...>/g' < $< > $@ 69 chmod 644 $@ 70 71install-AUTHORS: $(AMU_HTML_TOP)/AUTHORS.txt 72$(AMU_HTML_TOP)/AUTHORS.txt: $(top_srcdir)/AUTHORS 73 install -c -m 644 $< $@ 74 75install-tasks: $(AMU_HTML_TOP)/tasks.txt 76$(AMU_HTML_TOP)/tasks.txt: $(top_srcdir)/tasks 77 install -c -m 644 $< $@ 78 79install-autofs: $(AMU_HTML_TOP)/autofs.txt 80$(AMU_HTML_TOP)/autofs.txt: $(top_srcdir)/README.autofs 81 install -c -m 644 $< $@ 82 83install-y2k: $(AMU_HTML_TOP)/y2k.txt 84$(AMU_HTML_TOP)/y2k.txt: $(top_srcdir)/README.y2k 85 install -c -m 644 $< $@ 86 87install-attrcache: $(AMU_HTML_TOP)/attrcache.txt 88$(AMU_HTML_TOP)/attrcache.txt: $(top_srcdir)/README.attrcache 89 install -c -m 644 $< $@ 90 91install-sun2amd: $(AMU_HTML_TOP)/sun2amd.txt 92$(AMU_HTML_TOP)/sun2amd.txt: $(top_srcdir)/README.sun2amd 93 install -c -m 644 $< $@ 94 95install-ldap: $(AMU_HTML_TOP)/ldap.txt 96$(AMU_HTML_TOP)/ldap.txt: $(top_srcdir)/README.ldap 97 install -c -m 644 $< $@ 98 99install-osx: $(AMU_HTML_TOP)/osx.txt 100$(AMU_HTML_TOP)/osx.txt: $(top_srcdir)/README.osx 101 install -c -m 644 $< $@ 102 103install-BUGS: $(AMU_HTML_TOP)/BUGS.txt 104$(AMU_HTML_TOP)/BUGS.txt: $(top_srcdir)/BUGS 105 install -c -m 644 $< $@ 106 107install-FAQ: $(AMU_HTML_TOP)/FAQ.txt 108$(AMU_HTML_TOP)/FAQ.txt: $(top_srcdir)/FAQ 109 install -c -m 644 $< $@ 110 111install-MIRRORS: $(AMU_HTML_TOP)/MIRRORS.txt $(AMU_HTML_TOP)/MIRRORS.html 112$(AMU_HTML_TOP)/MIRRORS.txt: $(top_srcdir)/MIRRORS.txt 113 install -c -m 644 $< $@ 114$(AMU_HTML_TOP)/MIRRORS.html: $(top_srcdir)/MIRRORS.html 115 install -c -m 644 $< $@ 116