X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2FMakefile;h=d13a1e31680b4a4c0da9cbbca96da4e476e5d558;hb=8f6c9548ba16d755dadae4f09cf1f0288edebb42;hp=ee159bf1056f2b9bfa04f8e402c385252af3897a;hpb=192193db6e4fbda90a840474d4aa2e8762597927;p=uffi.git diff --git a/doc/Makefile b/doc/Makefile index ee159bf..d13a1e3 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,3 +1,4 @@ +############################################################################## # FILE IDENTIFICATION # # Name: Makefile @@ -5,43 +6,18 @@ # Programer: Kevin M. Rosenberg # Date Started: Mar 2002 # -# CVS Id: $Id: Makefile,v 1.1 2002/03/09 19:55:33 kevin Exp $ +# CVS Id: $Id$ # -# Copyright (c) 2002 by Kevin M. Rosenberg +# This file, part of UFFI, is Copyright (c) 2002-2003 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 - - -# Set to DSSSL -# For RedHat 6.x -#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 +# 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. +############################################################################## -# Nothing to configure beyond this point DOCFILE_BASE_DEFAULT=uffi -DOCFILE_EXT_DEFAULT=sgml +DOCFILE_EXT_DEFAULT=xml # Standard docfile processing @@ -54,58 +30,69 @@ DOCFILE_EXT=${DOCFILE_EXT_DEFAULT} endif DOCFILE=${DOCFILE_BASE}.${DOCFILE_EXT} -TEXFILE=${DOCFILE_BASE}.tex +FOFILE=${DOCFILE_BASE}.fo PDFFILE=${DOCFILE_BASE}.pdf PSFILE=${DOCFILE_BASE}.ps DVIFILE=${DOCFILE_BASE}.dvi +TXTFILE=${DOCFILE_BASE}.txt TMPFILES=${DOCFILE_BASE}.aux ${DOCFILE_BASE}.out ${DOCFILE_BASE}.log +DOCFILES=$(shell echo *.xml) -dist-doc: html pdf - @rm -f ${DVIFILE} ${PSFILE} ${TEXFILE} - @rm *~ +.PHONY: all +all: html pdf -all: html pdf ps dvi +.PHONY: dist +dist: html pdf +.PHONY: doc +doc: html pdf + +.PHONY: check check: - nsgmls -s -C catalog || exit 1 + @$(CHECK) + +.PHONY: html +html: html.tar.gz -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.tar.gz: $(DOCFILES) Makefile + @rm -rf html + @xmlto -o html xhtml $(DOCFILE) + @GZIP='-9' tar czf html.tar.gz html -tex: ${TEXFILE} +.PHONY: fo +fo: ${FOFILE} -${TEXFILE}: check ${DOCFILE} - jade -t tex -c catalog -d ${DSSSL_PRINT} ${DOCFILE} +${FOFILE}: $(DOCFILES) Makefile + @xmlto fo $(DOCFILE) +.PHONY: pdf 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} +${PDFFILE}: ${FOFILE} + @fop $(FOFILE) -pdf $(PDFFILE) > /dev/null +.PHONY: dvi dvi: ${DVIFILE} -${DVIFILE}: ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - jadetex ${TEXFILE} - @rm -f ${TMPFILES} - +.PHONY: ps ps: ${PSFILE} -${PSFILE}: ${DVIFILE} - dvips -o ${PSFILE} ${DVIFILE} +${PSFILE}: ${FOFILE} + @fop $(FOFILE) -ps $(PSFILE) > /dev/null -clean: - @rm -rf html - @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE} - @rm -f ${TMPFILE} -realclean: clean - @rm -f *~ +.PHONY: txt +txt: ${TXTFILE} + +${TXTFILE}: ${FOFILE} + @fop $(FOFILE) -txt $(TXTFILE) > /dev/null +.PHONY: clean +clean: + @rm -f *~ *.bak *.orig \#*\# .\#* texput.log + @rm -rf html ${PSFILE} + @rm -f ${TMPFILES} ${FOFILE} + @rm -f ${DVIFILE} ${TXTFILE} +.PHONY: distclean +distclean: clean