]> sourceware.org Git - systemtap.git/blame - doc/beginners/Makefile.am
Rework xvfb-run check and invocation, update autoconf generated files
[systemtap.git] / doc / beginners / Makefile.am
CommitLineData
53ade4da
MW
1# Makefile.am --- automake input file for systemtap tapset reference manual
2## process this file with automake to produce Makefile.in
3
4# publican will create a pdf file and a directory with *.html files,
5# a directory called images that contain *.png and *.svg files, a
6# Common_Content/images with more *.png and *.svg files and a
7# Common_Content/css directory with *.css files.
8
9DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap
10SBG = SystemTap_Beginners_Guide
11BEGIN_INSTALL_DIR = $(DOC_INSTALL_DIR)/$(SBG)
12
13if BUILD_PUBLICAN
14all: $(SBG).pdf $(SBG)/index.html
15
c232b6d7
MW
16# publican isn't make -j safe. So cheat a little, always create pdf and html
17# at the same time, then make html depend on pdf build for copying.
53ade4da 18$(SBG).pdf:
71aef8fb
LB
19
20# We're force to have this workaround due to BZ920216
21# which requires a connection to an X server
22if HAVE_XVFB
0d8d5d71 23 xvfb-run -a publican build --formats=pdf,html --langs=en-US && \
53ade4da 24 mv build/en-US/pdf/*$(SBG)*.pdf $(SBG).pdf
71aef8fb
LB
25else
26 publican build --formats=pdf,html --langs=en-US && \
27 mv build/en-US/pdf/*$(SBG)*.pdf $(SBG).pdf
28endif #HAVE_XVFB
53ade4da 29
c232b6d7 30$(SBG)/index.html: $(SBG).pdf
53ade4da
MW
31 mv build/en-US/html $(SBG)
32
33clean-local:
34 publican clean
35 rm -f $(SBG).pdf
36 rm -rf $(SBG)
37
38install-data-hook:
39 $(MKDIR_P) $(DOC_INSTALL_DIR)
40 $(INSTALL_DATA) $(SBG).pdf $(DOC_INSTALL_DIR)
41 $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)
42 $(INSTALL_DATA) $(SBG)/*.html $(DOC_INSTALL_DIR)/$(SBG)
43 $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/images
44 $(INSTALL_DATA) $(SBG)/images/*.png $(SBG)/images/*.svg \
45 $(DOC_INSTALL_DIR)/$(SBG)/images
46 $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/css
47 $(MKDIR_P) $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/images
48 $(INSTALL_DATA) $(SBG)/Common_Content/css/*.css \
49 $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/css
50 $(INSTALL_DATA) $(SBG)/Common_Content/images/*.png \
51 $(SBG)/Common_Content/images/*.svg \
52 $(DOC_INSTALL_DIR)/$(SBG)/Common_Content/images
53
54uninstall-local:
55 rm -f $(DOC_INSTALL_DIR)/$(SBG).pdf
56 rm -rf $(DOC_INSTALL_DIR)/$(SBG)
57endif
This page took 0.063328 seconds and 5 git commands to generate.