# 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
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 *~