1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1998-08-29 11:01:22 +00:00
|
|
|
#
|
1998-12-06 17:34:50 +00:00
|
|
|
# The include file <bsd.docb.mk> handles installing SGML/docbook documents.
|
1998-08-29 11:01:22 +00:00
|
|
|
#
|
|
|
|
# +++ variables +++
|
|
|
|
#
|
|
|
|
# DOC Name of the document.
|
|
|
|
#
|
|
|
|
# VOLUME Name of the installation subdirectory.
|
|
|
|
#
|
|
|
|
# SGMLOPTS Flags to sgmlfmt.
|
|
|
|
#
|
|
|
|
# SGMLFMT Format sgml files command. [sgmlfmt]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# +++ targets +++
|
|
|
|
#
|
|
|
|
# all:
|
|
|
|
# Converts sgml files to the specified output format
|
|
|
|
# (see ${FORMATS}).
|
|
|
|
#
|
|
|
|
# install:
|
|
|
|
# Install formated output.
|
|
|
|
|
|
|
|
|
|
|
|
.if !target(__initialized__)
|
|
|
|
__initialized__:
|
|
|
|
.if exists(${.CURDIR}/../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Use SGMLOPTS to pass extra flags to sgmlfmt(1).
|
|
|
|
VOLUME?= ${.CURDIR:T}
|
|
|
|
DOC?= ${.CURDIR:T}
|
|
|
|
SGMLFMT?= sgmlfmt
|
|
|
|
|
|
|
|
_docs= ${DOC:S/$/.html/g}
|
|
|
|
CLEANFILES+=${_docs}
|
|
|
|
|
|
|
|
# A DocBook document has the suffix .docb or .sgml. If a document
|
|
|
|
# with both suffixes exists, .docb wins.
|
|
|
|
.SUFFIXES: .docb .sgml .html
|
|
|
|
|
|
|
|
.docb.html .sgml.html: ${SRCS}
|
|
|
|
${SGMLFMT} -d docbook -f html ${SGMLOPTS} ${.IMPSRC}
|
|
|
|
|
|
|
|
.MAIN: all
|
|
|
|
all: ${_docs}
|
|
|
|
|
|
|
|
install:
|
|
|
|
${INSTALL} ${COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
|
|
|
|
${_docs} ${DESTDIR}${DOCDIR}/${VOLUME}
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|