aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/Makefile.nmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-02-11 10:54:17 -0800
committerGerald Combs <gerald@wireshark.org>2014-02-11 18:58:08 +0000
commitedc06c17e7279bc88e7c8e8fcf94e53bd57c0246 (patch)
treebcde58d4a8a2560f715c3954a74578255d781432 /docbook/Makefile.nmake
parentd49485e191b9203d1c52b7e62e06f1d768342b62 (diff)
Make sure the .asciidoc.xml inference rule only applies to the wsug_src
directory. This keeps us from trying to clobber GPL_appendix.xml if GPL_appendix.asciidoc has a more recent timestamp. Change-Id: I37962c7a6c5357709a4dd269340c333673d44539 Reviewed-on: https://code.wireshark.org/review/176 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'docbook/Makefile.nmake')
-rw-r--r--docbook/Makefile.nmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/docbook/Makefile.nmake b/docbook/Makefile.nmake
index 20879321c1..db976046e7 100644
--- a/docbook/Makefile.nmake
+++ b/docbook/Makefile.nmake
@@ -35,8 +35,7 @@ A2X_TEXT_OPTS=$(A2X_TEXT_OPTS) --lynx
# Convert an AsciiDoc document to a DocBook chapter
# Used for chapter-by-chapter conversion from DocBook to AsciiDoc.
# Can be removed after the User's Guide is converted.
-# .asciidoc -> whole book (.dbk) -> chapter (.xml)
-.asciidoc.xml:
+.{wsug_src}asciidoc.{wsug_src}xml:
$(SH) <<
PATH=/usr/bin
$(A2X) --verbose \
@@ -45,6 +44,7 @@ A2X_TEXT_OPTS=$(A2X_TEXT_OPTS) --lynx
--format=docbook --doctype=book \
$<
<<
+ # We have a "book" at this point. Extract the chapter.
mv $*.xml $*.dbk
xmllint --xpath "//chapter | //preface" $*.dbk > $@