summaryrefslogtreecommitdiff
path: root/xmlto.mak
diff options
context:
space:
mode:
Diffstat (limited to 'xmlto.mak')
-rw-r--r--xmlto.mak13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmlto.mak b/xmlto.mak
new file mode 100644
index 0000000..bdc263a
--- /dev/null
+++ b/xmlto.mak
@@ -0,0 +1,13 @@
+# Makefile rules for using xmlto
+
+%.pdf %.dvi %.ps %.epub %.txt %.fo: %.xml
+ xmlto $(XMLTOFLAGS) $(subst .,,$(suffix $@)) $<
+
+%.pdf %.dvi %.ps: %.fo
+ xmlto $(XMLTOFLAGS) $(subst .,,$(suffix $@)) $<
+
+%.html: %.xml
+ xmlto $(XMLTOFLAGS) html-nochunks $<
+
+%.xhtml: %.xml
+ xmlto $(XMLTOFLAGS) xhtml-nochunks $<