xref: /netbsd-src/external/mpl/bind/dist/doc/arm/Makefile.in (revision e6c7e151de239c49d2e38720a061ed9d1fa99309)
1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6#
7# See the COPYRIGHT file distributed with this work for additional
8# information regarding copyright ownership.
9
10srcdir =	@srcdir@
11VPATH =		@srcdir@
12top_srcdir =	@top_srcdir@
13
14@BIND9_MAKE_RULES@
15
16MANOBJS = Bv9ARM.html notes.html
17
18TXTOBJS = notes.txt
19
20PDFOBJS = Bv9ARM.pdf notes.pdf
21
22NOTESXML = notes-download.xml notes-eol.xml notes-intro.xml notes-license.xml \
23	   notes-numbering.xml notes-platforms.xml notes-thankyou.xml \
24	   notes-9.14.7.xml \
25	   notes-9.14.6.xml \
26	   notes-9.14.5.xml \
27	   notes-9.14.4.xml \
28	   notes-9.14.3.xml \
29	   notes-9.14.2.xml \
30	   notes-9.14.1.xml \
31	   notes-9.14.0.xml \
32	   notes.xml
33
34doc man:: ${MANOBJS} ${TXTOBJS} ${PDFOBJS}
35
36clean::
37	rm -f Bv9ARM.aux Bv9ARM.brf Bv9ARM.glo Bv9ARM.idx Bv9ARM.toc
38	rm -f Bv9ARM.log Bv9ARM.out
39	rm -f notes.aux notes.brf notes.glo notes.idx notes.toc
40	rm -f notes.log notes.out
41
42docclean manclean maintainer-clean:: clean
43	rm -f *.html ${PDFOBJS}
44
45maintainer-clean distclean::
46	rm -f releaseinfo.xml
47	rm -f pkgversion.xml
48	rm -f noteversion.xml
49
50# use xmllint to process include
51notes.html: notes-wrapper.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml
52	expand notes-wrapper.xml | ${XMLLINT} --xinclude - | \
53	${XSLTPROC} --stringparam generate.toc "" ../xsl/isc-notes-html.xsl - > notes.html
54
55notes.pdf: notes-wrapper.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml
56	${XSLTPROC} ${top_srcdir}/doc/xsl/pre-latex.xsl notes-wrapper.xml | \
57	${DBLATEX} -c notes.conf -Pdoc.layout="mainmatter" -o notes.pdf -
58
59notes.txt: notes.html
60	${W3M} -dump -cols 75 -O ascii -T text/html < notes.html | \
61		sed 's/  *$$//' | \
62		sed -e :a -e '/^\n*$$/{$$d;N;};/\n$$/ba' > notes.txt
63
64# use xmllint to process include
65Bv9ARM.html: Bv9ARM-book.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml
66	expand Bv9ARM-book.xml | ${XMLLINT} --xinclude - | \
67	${XSLTPROC} --stringparam root.filename Bv9ARM \
68		${top_srcdir}/doc/xsl/isc-docbook-chunk.xsl -
69
70# use xmllint to process include
71Bv9ARM-all.html: Bv9ARM-book.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml
72	expand Bv9ARM-book.xml | ${XMLLINT} --xinclude - |\
73	${XSLTPROC} -o Bv9ARM-all.html ../xsl/isc-docbook-html.xsl -
74
75Bv9ARM.pdf: Bv9ARM-book.xml ${NOTESXML} releaseinfo.xml pkgversion.xml noteversion.xml
76	expand Bv9ARM-book.xml | \
77	${XSLTPROC} ${top_srcdir}/doc/xsl/pre-latex.xsl - | \
78	${DBLATEX} -c Bv9ARM.conf -o Bv9ARM.pdf -
79