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.in
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: am-utils.dvi am-utils.ps
31	cp -p $^ $(distdir)
32
33# a special target for making Postscript files
34ps: am-utils.dvi am-utils.ps
35
36am-utils-clean: clean maintainer-clean-aminfo maintainer-clean-vti
37
38# personal rule for Erez Zadok to generate and install html docs
39alldocs: 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
40
41AMU_HTML_TOP=$(HOME)/proj/www/docs/am-utils
42install-html: $(AMU_HTML_TOP)/am-utils-all.html
43$(AMU_HTML_TOP)/am-utils-all.html: am-utils.texi
44	texi2html -Verbose -expand info -number -out_file am-utils-all.html $<
45	texi2html -frames -Verbose -expand info -number -split chapter $<
46	mv am-utils-all.html am-utils/*.html $(AMU_HTML_TOP)
47	chmod -R a+r $(AMU_HTML_TOP)
48
49install-ps: $(AMU_HTML_TOP)/am-utils.ps
50$(AMU_HTML_TOP)/am-utils.ps: am-utils.ps
51	install -c -m 644 $< $@
52
53install-NEWS: $(AMU_HTML_TOP)/NEWS.txt
54$(AMU_HTML_TOP)/NEWS.txt: $(top_srcdir)/NEWS
55	install -c -m 644 $< $@
56
57install-INSTALL: $(AMU_HTML_TOP)/INSTALL.txt
58$(AMU_HTML_TOP)/INSTALL.txt: $(top_srcdir)/INSTALL
59	install -c -m 644 $< $@
60
61install-ChangeLog: $(AMU_HTML_TOP)/ChangeLog.txt
62$(AMU_HTML_TOP)/ChangeLog.txt: $(top_srcdir)/ChangeLog
63	sed 's/@.*>$$/@...>/g' < $< > $@
64	chmod 644 $@
65
66install-AUTHORS: $(AMU_HTML_TOP)/AUTHORS.txt
67$(AMU_HTML_TOP)/AUTHORS.txt: $(top_srcdir)/AUTHORS
68	install -c -m 644 $< $@
69
70install-tasks: $(AMU_HTML_TOP)/tasks.txt
71$(AMU_HTML_TOP)/tasks.txt: $(top_srcdir)/tasks
72	install -c -m 644 $< $@
73
74install-autofs: $(AMU_HTML_TOP)/autofs.txt
75$(AMU_HTML_TOP)/autofs.txt: $(top_srcdir)/README.autofs
76	install -c -m 644 $< $@
77
78install-y2k: $(AMU_HTML_TOP)/y2k.txt
79$(AMU_HTML_TOP)/y2k.txt: $(top_srcdir)/README.y2k
80	install -c -m 644 $< $@
81
82install-attrcache: $(AMU_HTML_TOP)/attrcache.txt
83$(AMU_HTML_TOP)/attrcache.txt: $(top_srcdir)/README.attrcache
84	install -c -m 644 $< $@
85
86install-sun2amd: $(AMU_HTML_TOP)/sun2amd.txt
87$(AMU_HTML_TOP)/sun2amd.txt: $(top_srcdir)/README.sun2amd
88	install -c -m 644 $< $@
89
90install-ldap: $(AMU_HTML_TOP)/ldap.txt
91$(AMU_HTML_TOP)/ldap.txt: $(top_srcdir)/README.ldap
92	install -c -m 644 $< $@
93
94install-osx: $(AMU_HTML_TOP)/osx.txt
95$(AMU_HTML_TOP)/osx.txt: $(top_srcdir)/README.osx
96	install -c -m 644 $< $@
97
98install-BUGS: $(AMU_HTML_TOP)/BUGS.txt
99$(AMU_HTML_TOP)/BUGS.txt: $(top_srcdir)/BUGS
100	install -c -m 644 $< $@
101
102install-FAQ: $(AMU_HTML_TOP)/FAQ.txt
103$(AMU_HTML_TOP)/FAQ.txt: $(top_srcdir)/FAQ
104	install -c -m 644 $< $@
105
106install-MIRRORS: $(AMU_HTML_TOP)/MIRRORS.txt $(AMU_HTML_TOP)/MIRRORS.html
107$(AMU_HTML_TOP)/MIRRORS.txt: $(top_srcdir)/MIRRORS.txt
108	install -c -m 644 $< $@
109$(AMU_HTML_TOP)/MIRRORS.html: $(top_srcdir)/MIRRORS.html
110	install -c -m 644 $< $@
111