freebsd-skq/share/mk/bsd.docb.mk
ru dc24ddd41e Don't include bsd.own.mk from sys.mk, this makes it impossible
to use ``.if defined()'' inside bsd.own.mk to test for defines
in individual makefiles.  For example, setting DEBUG_FLAGS in
Makefile didn't take the desired effect on the STRIP assignment.

Added bsd.init.mk (like in NetBSD) that handles the inclusion
of ../Makefile.inc and bsd.own.mk from all bsd.*.mk files that
"build something".

Back out bsd.own.mk,v 1.15: moved OBJFORMAT initialization back
to sys.mk (several source tree makefiles want to check it early)
and removed MACHINE_ARCH initialization (it's hard to see from
looking at the commitlogs what the problem was at the time, but
now it serves no purpose).

Prohibit the direct inclusion of bsd.man.mk and bsd.libnames.mk.

Protect bsd.obj.mk from repetitive inclusion.  Prohibiting the
direct inclusion of bsd.obj.mk might be a good idea too.
2002-04-17 13:49:29 +00:00

49 lines
979 B
Makefile

# $FreeBSD$
#
# The include file <bsd.docb.mk> handles installing SGML/docbook documents.
#
# +++ 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.
.include <bsd.init.mk>
# 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}
all: ${_docs}
install:
${INSTALL} ${COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
${_docs} ${DESTDIR}${DOCDIR}/${VOLUME}
.include <bsd.obj.mk>