aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/Makefile.nmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-01-24 01:10:10 +0000
committerGerald Combs <gerald@wireshark.org>2014-01-24 01:10:10 +0000
commita9ddc06adc436d8ca4a9d97af95969d4ff01adf8 (patch)
treec99d7ac711dbca4abab20138012e7c563be7c7d9 /docbook/Makefile.nmake
parent81f3392d329306800f3e5cdd39c42395a3cdacdf (diff)
Prepare for conversion of Guide chapters to AsciiDoc.
svn path=/trunk/; revision=54936
Diffstat (limited to 'docbook/Makefile.nmake')
-rw-r--r--docbook/Makefile.nmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/docbook/Makefile.nmake b/docbook/Makefile.nmake
index 29ae0e0575..f14db0e8a5 100644
--- a/docbook/Makefile.nmake
+++ b/docbook/Makefile.nmake
@@ -32,6 +32,19 @@ A2X_TEXT_OPTS=$(A2X_TEXT_OPTS) --lynx
.SUFFIXES: .fo .pdf
+# Convert an AsciiDoc document to a Docbook chapter
+.asciidoc.xml:
+ $(A2X) --verbose \
+ --asciidoc-opts="--conf-file=asciidoc.conf" \
+ --no-xmllint \
+ --format=docbook --doctype=book \
+ $<
+ mv $*.xml $*.dbk
+ xmllint --xpath chapter $*.dbk > $@
+
+.SUFFIXES: .asciidoc .xml
+
+
# On every build, record the working copy revision string
# in git_version.xml (if the svn version has changed).
# This is done during nmake "preprocessing" so that it's done *before*