summaryrefslogtreecommitdiffstats
path: root/doc/SystemTap_Tapset_Reference/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/SystemTap_Tapset_Reference/Makefile.am')
-rw-r--r--doc/SystemTap_Tapset_Reference/Makefile.am20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/SystemTap_Tapset_Reference/Makefile.am b/doc/SystemTap_Tapset_Reference/Makefile.am
index 9e7d2069..30c4ffef 100644
--- a/doc/SystemTap_Tapset_Reference/Makefile.am
+++ b/doc/SystemTap_Tapset_Reference/Makefile.am
@@ -2,7 +2,7 @@
## process this file with automake to produce Makefile.in
DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap
-MAN_INSTALL_DIR = $(DESTDIR)$(mandir)/man5
+MAN_INSTALL_DIR = $(DESTDIR)$(mandir)/man3
HTML_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap/tapsets
@@ -18,12 +18,17 @@ noinst_PROGRAMS = docproc
SRCTREE=$(abs_top_srcdir)/
DOCPROC=$(abs_builddir)/docproc
+if BUILD_PDFREFDOCS
+PDFDOCS = tapsets.pdf
+endif
+
if BUILD_REFDOCS
-all: tapsets.pdf stamp-htmldocs stamp-mandocs
-tapsets.xml: docproc $(shell find $(SRCTREE) -name '*.stp')
+all: $(PDFDOCS) stamp-htmldocs stamp-mandocs
+tapsets.xml: docproc $(shell find $(SRCTREE)/tapset -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; \
+ rm tapsets.xml.new; \
else \
mv tapsets.xml.new tapsets.xml; \
fi
@@ -32,20 +37,23 @@ stamp-htmldocs: tapsets.xml
xmlto html -o tapsets tapsets.xml
touch stamp-htmldocs
+# bump up the allocated space so "xmlto pdf" works
tapsets.pdf: tapsets.xml
- xmlto pdf tapsets.xml
+ env pool_size=2000000 hash_extra=2000000 xmlto pdf tapsets.xml
stamp-mandocs: tapsets.xml
- xmlto man -o man5 tapsets.xml
+ xmlto man -o man3 tapsets.xml
touch stamp-mandocs
#FIXME need to figure out where to install things appropriately
#installmandocs: mandocs
install-data-hook:
+if BUILD_PDFREFDOCS
$(MKDIR_P) $(DOC_INSTALL_DIR)
$(INSTALL_DATA) tapsets.pdf $(DOC_INSTALL_DIR)
+endif
$(MKDIR_P) $(MAN_INSTALL_DIR)
- $(INSTALL_DATA) man5/* $(MAN_INSTALL_DIR)
+ $(INSTALL_DATA) man3/* $(MAN_INSTALL_DIR)
$(MKDIR_P) $(HTML_INSTALL_DIR)
$(INSTALL_DATA) tapsets/* $(HTML_INSTALL_DIR)
endif