diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-01-06 12:40:16 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-01-06 12:40:16 -0500 |
commit | e100f0744e77c5270dd8347f78bb97ee2aab878f (patch) | |
tree | 2a988c82e2a3f67b82b1e93edc4feb20747af41c /doc/SystemTap_Tapset_Reference | |
parent | ae474ad1e1dd8cbdb7b33fe5dcf0dec47e4dbc58 (diff) | |
download | systemtap-steved-e100f0744e77c5270dd8347f78bb97ee2aab878f.tar.gz systemtap-steved-e100f0744e77c5270dd8347f78bb97ee2aab878f.tar.xz systemtap-steved-e100f0744e77c5270dd8347f78bb97ee2aab878f.zip |
build: don't needlessly rebuild tapset ref docs
Diffstat (limited to 'doc/SystemTap_Tapset_Reference')
-rw-r--r-- | doc/SystemTap_Tapset_Reference/Makefile.am | 21 | ||||
-rw-r--r-- | doc/SystemTap_Tapset_Reference/Makefile.in | 21 |
2 files changed, 28 insertions, 14 deletions
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 diff --git a/doc/SystemTap_Tapset_Reference/Makefile.in b/doc/SystemTap_Tapset_Reference/Makefile.in index 839c6672..b2fc56e0 100644 --- a/doc/SystemTap_Tapset_Reference/Makefile.in +++ b/doc/SystemTap_Tapset_Reference/Makefile.in @@ -413,18 +413,25 @@ uninstall-am: uninstall-am -@BUILD_DOCS_TRUE@all: pdfdocs htmldocs mandocs -@BUILD_DOCS_TRUE@xmldocs: docproc -@BUILD_DOCS_TRUE@ SRCTREE=$(SRCTREE) $(DOCPROC) doc $(abs_srcdir)/tapsets.tmpl > tapsets.xml - -@BUILD_DOCS_TRUE@htmldocs: xmldocs +@BUILD_DOCS_TRUE@all: tapsets.pdf stamp-htmldocs stamp-mandocs +@BUILD_DOCS_TRUE@tapsets.xml: docproc $(shell find $(SRCTREE) -name '*.stp') +@BUILD_DOCS_TRUE@ SRCTREE=$(SRCTREE) $(DOCPROC) doc $(abs_srcdir)/tapsets.tmpl > tapsets.xml.new +@BUILD_DOCS_TRUE@ if cmp tapsets.xml.new tapsets.xml >/dev/null ; then \ +@BUILD_DOCS_TRUE@ echo tapsets.xml unchanged; \ +@BUILD_DOCS_TRUE@ else \ +@BUILD_DOCS_TRUE@ mv tapsets.xml.new tapsets.xml; \ +@BUILD_DOCS_TRUE@ fi + +@BUILD_DOCS_TRUE@stamp-htmldocs: tapsets.xml @BUILD_DOCS_TRUE@ xmlto html -o tapsets tapsets.xml +@BUILD_DOCS_TRUE@ touch stamp-htmldocs -@BUILD_DOCS_TRUE@pdfdocs: xmldocs +@BUILD_DOCS_TRUE@tapsets.pdf: tapsets.xml @BUILD_DOCS_TRUE@ xmlto pdf tapsets.xml -@BUILD_DOCS_TRUE@mandocs: xmldocs +@BUILD_DOCS_TRUE@stamp-mandocs: tapsets.xml @BUILD_DOCS_TRUE@ xmlto man -o man5 tapsets.xml +@BUILD_DOCS_TRUE@ touch stamp-mandocs #FIXME need to figure out where to install things appropriately #installmandocs: mandocs |