4 # Purpose: Makefile for the uffi documentation
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.5 2002/03/10 18:03:07 kevin Exp $
10 # Copyright (c) 2002 by Kevin M. Rosenberg
12 # This file is part of UFFI.
14 # UFFI is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License (version 2) as
16 # published by the Free Software Foundation.
18 # UFFI is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with UFFI; if not, write to the Free Software Foundation, Inc.,
25 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #DSSSL_HTML=/usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl
31 #DSSL_PRINT=/usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl
34 DSSSL_HTML=/usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl
35 DSSSL_PRINT=/usr/share/sgml/docbook/dsssl-stylesheets-1.64/print/docbook.dsl
38 #DSSSL_HTML=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/docbook.dsl
39 #DSSSL_PRINT=/usr/share/sgml/docbook/dsssl-stylesheets-1.76/print/docbook.dsl
42 #DSSSL_HTML=/home/kevin/lisp/docbook/html/lisp.dsl
43 #DSSSL_PRINT=/home/kevin/lisp/docbook/print/lisp.dsl
45 # Nothing to configure beyond this point
47 DOCFILE_BASE_DEFAULT=uffi
48 DOCFILE_EXT_DEFAULT=sgml
50 # Standard docfile processing
53 DOCFILE_BASE=${DOCFILE_BASE_DEFAULT}
57 DOCFILE_EXT=${DOCFILE_EXT_DEFAULT}
60 DOCFILE=${DOCFILE_BASE}.${DOCFILE_EXT}
61 TEXFILE=${DOCFILE_BASE}.tex
62 PDFFILE=${DOCFILE_BASE}.pdf
63 PSFILE=${DOCFILE_BASE}.ps
64 DVIFILE=${DOCFILE_BASE}.dvi
65 TMPFILES=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log
68 @rm -f ${DVIFILE} ${PSFILE} ${TEXFILE}
74 nsgmls -s -C catalog || exit 1
76 html: check ${DOCFILE}
77 ( rm -rf html ; mkdir html; cd html ; jade -t sgml -c ../catalog -d ${DSSSL_HTML} ../${DOCFILE}; mv book1.htm manual.htm; cd ..)
81 ${TEXFILE}: check ${DOCFILE}
82 jade -t tex -c catalog -d ${DSSSL_PRINT} ${DOCFILE}
86 ${PDFFILE}: ${TEXFILE}
87 pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}'
88 pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}'
89 pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}'
90 pdfjadetex '\pdfcompresslevel=9' '\input ${TEXFILE}'
95 ${DVIFILE}: ${TEXFILE}
104 ${PSFILE}: ${DVIFILE}
105 dvips -o ${PSFILE} ${DVIFILE}
109 @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE}