From 0036ca323f10ce9582400683d4b129ce23dd8780 Mon Sep 17 00:00:00 2001 From: Tammy Fox Date: Thu, 2 Oct 2003 16:39:57 +0000 Subject: use variables, copy over css and stylesheet-images --- Makefile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7753381..b824144 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ############################################################################### -# Makefile for community charter +# Makefile for RHLP docs project # Created by: Tammy Fox # Last edited by: Tammy Fox # WARNING: need passivetex 1.24 for pdf generation to work @@ -9,14 +9,21 @@ XSLPDF = ../xsl/main-pdf.xsl XSLHTML = ../xsl/main-html.xsl +LANG = en +DOCNAME = documentation-guide +XMLFILE = $(DOCNAME).xml -all: html pdf +###################################################### +html: + @xmlto html -x $(XSLHTML) -o $(DOCNAME) $(XMLFILE) + @mkdir -p $(DOCNAME)/stylesheet-images + @cp ../stylesheet-images/*.png $(DOCNAME)/stylesheet-images + @cp ../css/fedora.css $(DOCNAME) -html: documentation-guide.xml - @xmlto html -x $(XSLHTML) -o documentation-guide $< -pdf: documentation-guide.xml - @xmlto pdf -x $(XSLPDF) $< +pdf-%: + @xmlto pdf -x $(XSLPDF) $(XMLFILE) +###################################################### clean: - @rm -rfv *.html *.pdf *.tex documentation-guide/ + @rm -rfv *.html *.pdf *.tex $(DOCNAME) -- cgit