From 53ade4da49f02bedf5c0e7e0b82d961b3e78cb4d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 1 Jan 2010 20:47:26 +0100 Subject: Add SystemTap_Beginners_Guide to build. * configure.ac: Add --enable-publican and --with-publican-brand. Setup "shadow" directory doc/beginners. * Makefile.in: Regenerated. * configure: Regenerated. * doc/Makefile.am (SUBDIRS): Add beginners. * doc/Makefile.in: Regenerated. * doc/SystemTap_Beginners_Guide/en-US/Book_Info.xml (productname): Set to Systemtap. (productnumber): Set to 1.0. * SystemTap_Beginners_Guide/en-US/*.xml: Replace includes from extras/testsuite to ../testsuite, * doc/SystemTap_Beginners_Guide/publican.cfg: Moved to ... * doc/SystemTap_Beginners_Guide/publican.cfg.in: ... here. * doc/SystemTap_Beginners_Guide/Makefile: Removed. * doc/SystemTap_Beginners_Guide/old-syncandbuild.sh: Removed. * doc/SystemTap_Beginners_Guide/syncandbuild.sh: Removed. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * doc/beginners/Makefile.am: New makefile. * doc/beginners/Makefile.in: New generated file. * grapher/Makefile.in: Regenerated. * systemtap.spec: Add with_publican and publican_brand. --- doc/beginners/Makefile.am | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 doc/beginners/Makefile.am (limited to 'doc/beginners/Makefile.am') diff --git a/doc/beginners/Makefile.am b/doc/beginners/Makefile.am new file mode 100644 index 00000000..29ffeaba --- /dev/null +++ b/doc/beginners/Makefile.am @@ -0,0 +1,48 @@ +# Makefile.am --- automake input file for systemtap tapset reference manual +## process this file with automake to produce Makefile.in + +# publican will create a pdf file and a directory with *.html files, +# a directory called images that contain *.png and *.svg files, a +# Common_Content/images with more *.png and *.svg files and a +# Common_Content/css directory with *.css files. + +DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap +SBG = SystemTap_Beginners_Guide +BEGIN_INSTALL_DIR = $(DOC_INSTALL_DIR)/$(SBG) + +if BUILD_PUBLICAN +all: $(SBG).pdf $(SBG)/index.html + +$(SBG).pdf: + publican build --formats=pdf --langs=en-US && \ + mv build/en-US/pdf/*$(SBG)*.pdf $(SBG).pdf + +$(SBG)/index.html: + publican build --formats=html --langs=en-US && \ + mv build/en-US/html $(SBG) + +clean-local: + publican clean + rm -f $(SBG).pdf + rm -rf $(SBG) + +install-data-hook: + $(MKDIR_P) $(DOC_INSTALL_DIR) + $(INSTALL_DATA) $(SBG).pdf $(DOC_INSTALL_DIR) + $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG) + $(INSTALL_DATA) $(SBG)/*.html $(DOC_INSTALL_DIR)/$(SBG) + $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/images + $(INSTALL_DATA) $(SBG)/images/*.png $(SBG)/images/*.svg \ + $(DOC_INSTALL_DIR)/$(SBG)/images + $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/css + $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/images + $(INSTALL_DATA) $(SBG)/Common_Content/css/*.css \ + $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/css + $(INSTALL_DATA) $(SBG)/Common_Content/images/*.png \ + $(SBG)/Common_Content/images/*.svg \ + $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/images + +uninstall-local: + rm -f $(DOC_INSTALL_DIR)/$(SBG).pdf + rm -rf $(DOC_INSTALL_DIR)/$(SBG) +endif -- cgit