diff options
Diffstat (limited to 'doc/beginners/Makefile.am')
-rw-r--r-- | doc/beginners/Makefile.am | 48 |
1 files changed, 48 insertions, 0 deletions
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 |