X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=5123a72a206c7de6d230b95aa1e99c13828fc404;hb=f8c0f2b6864d57435e6701fe4682aae50ca83467;hp=40d17bbd924709d1d3bb62ed6ebdaf8153a32eed;hpb=63f1ccc748768f01063438cbb991b2f3022d37d4;p=uffi.git diff --git a/doc/Makefile b/doc/Makefile index 40d17bb..5123a72 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.5 2002/03/10 18:03:07 kevin Exp $ +# CVS Id: $Id: Makefile,v 1.12 2002/04/07 09:17:51 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 @@ -63,53 +53,59 @@ 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 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: 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: html/book1.htm + +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 '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null + @pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}' > /dev/null dvi: ${DVIFILE} ${DVIFILE}: ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - @rm -f ${TMPFILES} + @jadetex ${TEXFILE} + @jadetex ${TEXFILE} + @jadetex ${TEXFILE} + @jadetex ${TEXFILE} ps: ${PSFILE} ${PSFILE}: ${DVIFILE} - dvips -o ${PSFILE} ${DVIFILE} + @dvips -o ${PSFILE} ${DVIFILE} clean: @rm -rf html @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE} - @rm -f ${TMPFILE} + @rm -f ${TMPFILES} *~ + @rm -f + +distclean: clean -realclean: clean - @rm -f *~