From 3cfd791d8fd3842ef55ef54657a70e0bc4225d0c Mon Sep 17 00:00:00 2001 From: Eugeniy Meshcheryakov Date: Tue, 5 May 2009 23:14:54 +0200 Subject: Only disable building of PDF version of refdocs if xmlto is bad --- doc/SystemTap_Tapset_Reference/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 7903b12b..276c7169 100644 --- a/doc/SystemTap_Tapset_Reference/Makefile.am +++ b/doc/SystemTap_Tapset_Reference/Makefile.am @@ -19,7 +19,11 @@ SRCTREE=$(abs_top_srcdir)/ DOCPROC=$(abs_builddir)/docproc if BUILD_REFDOCS -all: tapsets.pdf stamp-htmldocs stamp-mandocs +PDFDOCS = tapsets.pdf +endif + +if BUILD_DOCS +all: $(PDFDOCS) 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 \ @@ -43,8 +47,10 @@ stamp-mandocs: tapsets.xml #FIXME need to figure out where to install things appropriately #installmandocs: mandocs install-data-hook: +if BUILD_REFDOCS $(MKDIR_P) $(DOC_INSTALL_DIR) $(INSTALL_DATA) tapsets.pdf $(DOC_INSTALL_DIR) +endif $(MKDIR_P) $(MAN_INSTALL_DIR) $(INSTALL_DATA) man3/* $(MAN_INSTALL_DIR) $(MKDIR_P) $(HTML_INSTALL_DIR) -- cgit From 023337aaca2d3056437658e3037840b05d3d9a75 Mon Sep 17 00:00:00 2001 From: Eugeniy Meshcheryakov Date: Wed, 6 May 2009 01:04:38 +0200 Subject: Fix --enable-refdocs --- doc/SystemTap_Tapset_Reference/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 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 276c7169..a191461a 100644 --- a/doc/SystemTap_Tapset_Reference/Makefile.am +++ b/doc/SystemTap_Tapset_Reference/Makefile.am @@ -18,11 +18,11 @@ noinst_PROGRAMS = docproc SRCTREE=$(abs_top_srcdir)/ DOCPROC=$(abs_builddir)/docproc -if BUILD_REFDOCS +if BUILD_PDFREFDOCS PDFDOCS = tapsets.pdf endif -if BUILD_DOCS +if BUILD_REFDOCS all: $(PDFDOCS) stamp-htmldocs stamp-mandocs tapsets.xml: docproc $(shell find $(SRCTREE) -name '*.stp') SRCTREE=$(SRCTREE) $(DOCPROC) doc $(abs_srcdir)/tapsets.tmpl > tapsets.xml.new @@ -47,7 +47,7 @@ stamp-mandocs: tapsets.xml #FIXME need to figure out where to install things appropriately #installmandocs: mandocs install-data-hook: -if BUILD_REFDOCS +if BUILD_PDFREFDOCS $(MKDIR_P) $(DOC_INSTALL_DIR) $(INSTALL_DATA) tapsets.pdf $(DOC_INSTALL_DIR) endif -- cgit