From e100f0744e77c5270dd8347f78bb97ee2aab878f Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 6 Jan 2009 12:40:16 -0500 Subject: build: don't needlessly rebuild tapset ref docs --- doc/SystemTap_Tapset_Reference/Makefile.am | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'doc/SystemTap_Tapset_Reference/Makefile.am') diff --git a/doc/SystemTap_Tapset_Reference/Makefile.am b/doc/SystemTap_Tapset_Reference/Makefile.am index 71f2cd55..609519e4 100644 --- a/doc/SystemTap_Tapset_Reference/Makefile.am +++ b/doc/SystemTap_Tapset_Reference/Makefile.am @@ -19,18 +19,25 @@ SRCTREE=$(abs_top_srcdir)/ DOCPROC=$(abs_builddir)/docproc if BUILD_DOCS -all: pdfdocs htmldocs mandocs -xmldocs: docproc - SRCTREE=$(SRCTREE) $(DOCPROC) doc $(abs_srcdir)/tapsets.tmpl > tapsets.xml - -htmldocs: xmldocs +all: tapsets.pdf stamp-htmldocs stamp-mandocs +tapsets.xml: docproc $(shell find $(SRCTREE) -name '*.stp') + SRCTREE=$(SRCTREE) $(DOCPROC) doc $(abs_srcdir)/tapsets.tmpl > tapsets.xml.new + if cmp tapsets.xml.new tapsets.xml >/dev/null ; then \ + echo tapsets.xml unchanged; \ + else \ + mv tapsets.xml.new tapsets.xml; \ + fi + +stamp-htmldocs: tapsets.xml xmlto html -o tapsets tapsets.xml + touch stamp-htmldocs -pdfdocs: xmldocs +tapsets.pdf: tapsets.xml xmlto pdf tapsets.xml -mandocs: xmldocs +stamp-mandocs: tapsets.xml xmlto man -o man5 tapsets.xml + touch stamp-mandocs #FIXME need to figure out where to install things appropriately #installmandocs: mandocs -- cgit