summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile21
1 files 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 <tfox@redhat.com>
# Last edited by: Tammy Fox <tfox@redhat.com>
# 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)