X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=f49d1f0b304c7f789ceeb6f9f1afc4cc409b9799;hb=8bc3c5c67e678d004331fa393f13171949c2b74c;hp=baccb857f5b8657c33072e79986a75fc0139d32c;hpb=4d0afb9bedcc103e882dce47d0cdc57a0b79e433;p=uffi.git diff --git a/doc/Makefile b/doc/Makefile index baccb85..f49d1f0 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,44 +5,25 @@ # Programer: Kevin M. Rosenberg # Date Started: Mar 2002 # -# CVS Id: $Id: Makefile,v 1.4 2002/03/10 17:43:56 kevin Exp $ +# CVS Id: $Id: Makefile,v 1.13 2002/04/23 21:30:27 kevin Exp $ # -# Copyright (c) 2002 by Kevin M. Rosenberg +# This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg # -# This file is part of UFFI. -# -# UFFI is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License (version 2) as -# published by the Free Software Foundation. -# -# UFFI is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with UFFI; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - +# UFFI users are granted the rights to distribute and use this software +# as governed by the terms of the Lisp Lesser GNU Public License +# (http://opensource.franz.com/preamble.html), also known as the LLGPL. -# Set to DSSSL -# For RedHat 6.x -#DSSSL_HTML=/usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl -#DSSL_PRINT=/usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl +# System variable to select catalog file +SYSTEM=debian +# SYSTEM=redhat -# For RedHat 7.2 -#DSSSL_HTML=/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl -#DSSSL_PRINT=/usr/share/sgml/docbook/dsssl-stylesheets-1.64/print/docbook.dsl - -# Latest version -DSSSL_HTML=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/docbook.dsl -DSSSL_PRINT=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/print/docbook.dsl +# Nothing to configure beyond this point -# Custom version -#DSSSL_HTML=/home/kevin/lisp/docbook/html/lisp.dsl -#DSSSL_PRINT=/home/kevin/lisp/docbook/print/lisp.dsl +CATALOG=catalog.$(SYSTEM) -# Nothing to configure beyond this point +# Custom DSSSL's +DSSSL_HTML=../dsssl/html/docbook.dsl +DSSSL_PRINT=dsssl/print/docbook.dsl DOCFILE_BASE_DEFAULT=uffi DOCFILE_EXT_DEFAULT=sgml @@ -63,32 +44,38 @@ PDFFILE=${DOCFILE_BASE}.pdf PSFILE=${DOCFILE_BASE}.ps DVIFILE=${DOCFILE_BASE}.dvi TMPFILES=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log +DOCFILES=$(shell echo *.sgml) -dist-doc: html pdf - @rm -f ${DVIFILE} ${PSFILE} ${TEXFILE} - @rm -f *~ +.PHONY: all dist check html tex pdf ps clean distclean all: html pdf ps dvi +dist: html pdf + +CHECK=nsgmls -s -C ${CATALOG} || exit 1 + check: - nsgmls -s -C catalog || exit 1 + $(CHECK) + +html: html/book1.htm -html: check ${DOCFILE} - ( rm -rf html ; mkdir html; cd html ; jade -t sgml -c ../catalog -d ${DSSSL_HTML} ../${DOCFILE}; mv book1.htm manual.htm; cd ..) +html/book1.htm: ${DOCFILES} + $(CHECK) + ( rm -rf html ; mkdir html; cd html ; jade -t sgml -c ../${CATALOG} -d ${DSSSL_HTML} ../${DOCFILE}; cd ..) tex: ${TEXFILE} -${TEXFILE}: check ${DOCFILE} - jade -t tex -c catalog -d ${DSSSL_PRINT} ${DOCFILE} +${TEXFILE}: ${DOCFILES} + $(CHECK) + @jade -t tex -c ${CATALOG} -d ${DSSSL_PRINT} ${DOCFILE} pdf: ${PDFFILE} ${PDFFILE}: ${TEXFILE} - pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' - pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' - pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' - pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' - @rm -f ${TMPFILES} + @pdfjadetex -interaction=batchmode '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex -interaction=batchmode '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex -interaction=batchmode '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex -interaction=batchmode '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null dvi: ${DVIFILE} @@ -97,7 +84,6 @@ ${DVIFILE}: ${TEXFILE} jadetex ${TEXFILE} jadetex ${TEXFILE} jadetex ${TEXFILE} - @rm -f ${TMPFILES} ps: ${PSFILE} @@ -107,7 +93,7 @@ ${PSFILE}: ${DVIFILE} clean: @rm -rf html @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE} - @rm -f ${TMPFILE} + @rm -f ${TMPFILES} realclean: clean @rm -f *~