1 ##############################################################################
5 # Purpose: Makefile for the uffi documentation
6 # Programer: Kevin M. Rosenberg
7 # Date Started: Mar 2002
11 # This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
13 # UFFI users are granted the rights to distribute and use this software
14 # as governed by the terms of the Lisp Lesser GNU Public License
15 # (http://opensource.franz.com/preamble.html), also known as the LLGPL.
16 ##############################################################################
19 DOCFILE_BASE_DEFAULT=uffi
20 DOCFILE_EXT_DEFAULT=xml
22 # Standard docfile processing
25 DOCFILE_BASE=${DOCFILE_BASE_DEFAULT}
29 DOCFILE_EXT=${DOCFILE_EXT_DEFAULT}
32 DOCFILE:=${DOCFILE_BASE}.${DOCFILE_EXT}
33 FOFILE:=${DOCFILE_BASE}.fo
34 PDFFILE:=${DOCFILE_BASE}.pdf
35 PSFILE:=${DOCFILE_BASE}.ps
36 DVIFILE:=${DOCFILE_BASE}.dvi
37 TXTFILE:=${DOCFILE_BASE}.txt
38 TMPFILES:=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log
39 DOCFILES:=$(shell echo *.xml)
41 CHECK:=xmllint --noout --catalogs --xinclude --postvalid $(DOCFILE) || exit 1
59 html.tar.gz: $(DOCFILES) Makefile check
61 @xmlto --skip-validation -o html xhtml $(DOCFILE)
62 @GZIP='-9' tar czf html.tar.gz html
67 ${FOFILE}: $(DOCFILES) Makefile check
74 @fop $(FOFILE) -pdf $(PDFFILE) > /dev/null
83 @fop $(FOFILE) -ps $(PSFILE) > /dev/null
90 @fop $(FOFILE) -txt $(TXTFILE) > /dev/null
94 @rm -f *~ *.bak *.orig \#*\# .\#* texput.log
95 @rm -rf html ${PSFILE}
96 @rm -f ${TMPFILES} ${FOFILE}
97 @rm -f ${DVIFILE} ${TXTFILE}