summaryrefslogtreecommitdiffstats
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 3f3c06e5b..b83135183 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,5 +1,11 @@
SOURCES = *.xml
-manual.pdf: $(SOURCES)
- xsltproc --stringparam body.font.family Helvetica --stringparam fop.extensions 1 /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl manual.xml > manual.fo
- fop -fo manual.fo -pdf manual.pdf
+%.fo: %.xml $(SOURCES)
+ xsltproc --stringparam body.font.family Helvetica --stringparam fop.extensions 1 /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $< > $@
+
+%.html: %.xml $(SOURCES)
+ xsltproc -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl $<
+
+%.pdf: %.fo
+ fop -fo $< -pdf $@
+