]> gitweb @ CieloNegro.org - oh-my-god.git/blobdiff - am/docbook.am
Steal M4 macros from GHC
[oh-my-god.git] / am / docbook.am
diff --git a/am/docbook.am b/am/docbook.am
new file mode 100644 (file)
index 0000000..c573c46
--- /dev/null
@@ -0,0 +1,24 @@
+DOCBOOK_STYLESHEET = \
+       http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/chunk.xsl
+
+EXTRA_DIST = $(DOCBOOK_FILES)
+
+html-local:
+       "$(XmllintCmd)" \
+               --noout \
+               --xinclude \
+               --postvalid \
+               --noent \
+               "$(srcdir)/$(DOCBOOK_MAIN)"
+
+       "$(XsltprocCmd)" \
+               --xinclude \
+               --stringparam base.dir "html/" \
+               --stringparam chunker.output.indent "yes" \
+               --stringparam use.id.as.filename "yes" \
+               --nonet \
+               "$(DOCBOOK_STYLESHEET)" \
+               "$(srcdir)/$(DOCBOOK_MAIN)"
+
+clean-local:
+       -rm -rf "html"