Commit 79764f56 authored by Bob Halley's avatar Bob Halley
Browse files

add DocBook support and superclean

parent 98855178
......@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: rules.in,v 1.29 2001/03/02 17:36:27 halley Exp $
# $Id: rules.in,v 1.30 2001/03/27 17:48:48 halley Exp $
###
### Common Makefile rules for BIND 9.
......@@ -70,7 +70,7 @@ subdirs:
fi \
done
install clean distclean::
install clean distclean superclean man manclean::
@for i in ${ALL_SUBDIRS}; do \
if [ "$$i" != "nulldir" -a -d $$i ]; then \
echo "making $@ in `pwd`/$$i"; \
......@@ -130,6 +130,10 @@ clean distclean::
distclean::
rm -f Makefile
superclean:: manclean distclean
manclean:: FORCE
depend:
@for i in ${ALL_SUBDIRS}; do \
if [ "$$i" != "nulldir" -a -d $$i ]; then \
......@@ -170,3 +174,85 @@ RANLIB = @RANLIB@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
###
### DocBook -> HTML
### DocBook -> man page
###
.SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
SHARESGML = /usr/local/share/sgml
OPENJADE = openjade
HTMLSTYLE = ${SHARESGML}/dsssl/docbook/html/docbook.dsl
DOCBOOK2X = ${SHARESGML}/docbook2X
ONSGMLS = onsgmls
SGMLSPL = sgmlspl
#
# Note: this rule assumes the docbook.dsl stylesheet
# is being used. If another stylesheet is used, the
# filename 'r1.htm' in the rule might have to be
# be changed.
#
.docbook.html:
${OPENJADE} -t sgml -d ${HTMLSTYLE} $<
cat ${top_srcdir}/util/HTML_COPYRIGHT r1.htm > $@
rm -f r1.htm
.docbook.1:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.2:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.3:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.4:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.5:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.6:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.7:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
.docbook.8:
${ONSGMLS} $< | ${SGMLSPL} ${DOCBOOK2X}/docbook2man-spec.pl
rm -f $@.tmp
grep -v 'auto-generated by docbook2man' $@ > $@.tmp
rm -f $@
cat ${top_srcdir}/util/MAN_COPYRIGHT $@.tmp > $@
rm -f manpage.* $@.tmp
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment