X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=c843fa5747fa572891eabb285c6d36d2690db11e;hb=f73eb94e15649aba5fcfbe3a900aa72f31f46a96;hp=46b6578d0f04a99bd9d4f9f08c1937dcf4bd5f84;hpb=a395c2892f8bbf8e94f3d1e35b6f24f5c4659b64;p=uffi.git diff --git a/doc/Makefile b/doc/Makefile index 46b6578..c843fa5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,24 +5,14 @@ # Programer: Kevin M. Rosenberg # Date Started: Mar 2002 # -# CVS Id: $Id: Makefile,v 1.2 2002/03/09 20:32:05 kevin Exp $ +# CVS Id: $Id: Makefile,v 1.9 2002/03/23 16:32:39 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 @@ -30,14 +20,18 @@ #DSSSL_HTML=/usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl #DSSL_PRINT=/usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl -# For RedHat 7.1 -#DSSSL_HTML=/usr/share/sgml/docbook/dsssl-stylesheets-1.59/html/docbook.dsl -#DSSSL_PRINT=/usr/share/sgml/docbook/dsssl-stylesheets-1.59/print/docbook.dsl - # 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 + +# Custom version +#DSSSL_HTML=/home/kevin/lisp/docbook/html/lisp.dsl +#DSSSL_PRINT=/home/kevin/lisp/docbook/print/lisp.dsl + # Nothing to configure beyond this point DOCFILE_BASE_DEFAULT=uffi @@ -59,22 +53,27 @@ 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) + +all: html pdf ps dvi dist-doc: html pdf - @rm -f ${DVIFILE} ${PSFILE} ${TEXFILE} - @rm -f *~ -all: html pdf ps dvi +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} +${TEXFILE}: ${DOCFILES} + $(CHECK) jade -t tex -c catalog -d ${DSSSL_PRINT} ${DOCFILE} pdf: ${PDFFILE} @@ -84,7 +83,6 @@ ${PDFFILE}: ${TEXFILE} pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' - @rm -f ${TMPFILES} dvi: ${DVIFILE} @@ -93,7 +91,6 @@ ${DVIFILE}: ${TEXFILE} jadetex ${TEXFILE} jadetex ${TEXFILE} jadetex ${TEXFILE} - @rm -f ${TMPFILES} ps: ${PSFILE} @@ -103,7 +100,7 @@ ${PSFILE}: ${DVIFILE} clean: @rm -rf html @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE} - @rm -f ${TMPFILE} + @rm -f ${TMPFILES} realclean: clean @rm -f *~