This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 4/5] winsup/doc: Use xidepend to generate the source list for FAQ targets as well
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-patches at cygwin dot com
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Mon, 22 Jun 2015 15:39:35 +0100
- Subject: [PATCH 4/5] winsup/doc: Use xidepend to generate the source list for FAQ targets as well
- Authentication-results: sourceware.org; auth=none
- References: <1434983976-3612-1-git-send-email-jon dot turney at dronecode dot org dot uk>
2015-06-22 Jon Turney <jon.turney@dronecode.org.uk>
* Makefile.in (FAQ_SOURCES): Remove and generate with xidepend.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
---
winsup/doc/ChangeLog | 4 ++++
winsup/doc/Makefile.in | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog
index ca3bac6..77985b8 100644
--- a/winsup/doc/ChangeLog
+++ b/winsup/doc/ChangeLog
@@ -1,5 +1,9 @@
2015-06-22 Jon Turney <jon.turney@dronecode.org.uk>
+ * Makefile.in (FAQ_SOURCES): Remove and generate with xidepend.
+
+2015-06-22 Jon Turney <jon.turney@dronecode.org.uk>
+
* utils.xml: Remove 'Usage' prefix from synopses.
2015-06-22 Jon Turney <jon.turney@dronecode.org.uk>
diff --git a/winsup/doc/Makefile.in b/winsup/doc/Makefile.in
index e215580..7cdc72c 100644
--- a/winsup/doc/Makefile.in
+++ b/winsup/doc/Makefile.in
@@ -35,8 +35,6 @@ DOCBOOK2XTEXI:=docbook2x-texi --xinclude --info --utf8trans-map=charmap
include $(srcdir)/../Makefile.common
-include Makefile.dep
-FAQ_SOURCES:= $(wildcard $(srcdir)/faq*.xml)
-
.SUFFIXES: .html .body
.html.body:
@@ -137,9 +135,9 @@ intro2man.stamp: intro.xml man.xsl
@echo ".so intro.1" >cygwin.1
@touch $@
-faq/faq.html : $(FAQ_SOURCES)
+faq/faq.html : $(faq_SOURCES)
-$(XMLTO) html -o faq -m $(srcdir)/html.xsl $(srcdir)/faq.xml
-sed -i 's;<a name="id[mp][0-9]*"></a>;;g' faq/faq.html
-Makefile.dep: cygwin-ug-net.xml cygwin-api.xml
+Makefile.dep: cygwin-ug-net.xml cygwin-api.xml faq.xml
cd $(srcdir) && ./xidepend $^ > "${CURDIR}/$@"
--
2.1.4