From owner-freebsd-doc Tue Aug 25 22:12:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10166 for freebsd-doc-outgoing; Tue, 25 Aug 1998 22:12:01 -0700 (PDT) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from baerenklau.de.freebsd.org (baerenklau.de.freebsd.org [195.185.195.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10141 for ; Tue, 25 Aug 1998 22:11:56 -0700 (PDT) (envelope-from wosch@panke.de.freebsd.org) Received: (from uucp@localhost) by baerenklau.de.freebsd.org (8.8.8/8.8.8) with UUCP id HAA15013 for doc@freebsd.org; Wed, 26 Aug 1998 07:11:06 +0200 (CEST) (envelope-from wosch@panke.de.freebsd.org) Received: (from wosch@localhost) by campa.panke.de (8.8.8/8.8.8) id NAA00548 for doc@freebsd.org; Tue, 25 Aug 1998 13:31:00 +0200 (MET DST) (envelope-from wosch) Message-ID: <19980825133058.A534@panke.de> Date: Tue, 25 Aug 1998 13:30:58 +0200 From: Wolfram Schneider To: doc@FreeBSD.ORG Subject: bsd.docb.mk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I tried to add docbook targets to bsd.sgml.mk and give up. Our bsd.*.mk files are unreadable and write-only. So I wrote a new system make file for docbook sgml files. It is small and easy to read. A sample makefile for tutorials/devel: DOC= devel VOLUME= tutorials/${DOC} SRCS= ${DOC}.docb .include Wolfram # $Id$ # # The include file handles installing SGML/docbook documents. # # # +++ variables +++ # # DISTRIBUTION Name of distribution. [bin] # # SGMLOPTS Flags to sgmlfmt. [] # # SGMLFMT Format sgml files command. [sgmlfmt] # # Variables DOCOWN, DOCGRP, DOCMODE, DOCDIR, DESTDIR, DISTDIR are # set by other Makefiles (e.g. bsd.own.mk) # # # +++ targets +++ # # all: # Converts sgml files to the specified output format # (see ${FORMATS}). # # distribute: # This is a variant of install, which will # put the stuff into the right "distribution". # # 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} DISTRIBUTION?= bin SGMLFMT?= sgmlfmt _docs= ${DOC:S/$/.html/g} CLEANFILES+=${_docs} .SUFFIXES: .docb .html .docb.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 -- Wolfram Schneider http://www.freebsd.org/~w/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message