1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00
hydra/doc/manual/Makefile.am

57 lines
1.5 KiB
Makefile
Raw Normal View History

2013-07-19 09:01:18 -04:00
DOCBOOK_FILES = installation.xml introduction.xml manual.xml projects.xml hacking.xml
2010-09-30 10:29:15 -04:00
EXTRA_DIST = $(DOCBOOK_FILES)
2010-09-30 10:29:15 -04:00
xsltproc_opts = \
--param html.stylesheet \'style.css\' \
2012-05-11 18:22:46 -04:00
--param callout.graphics.extension \'.gif\' \
--param section.autolabel 1 \
--param section.label.includes.component.label 1
2010-09-30 10:29:15 -04:00
dblatex_opts = \
-V \
-P doc.collab.show=0 \
-P latex.output.revhistory=0
# Include the manual in the tarball.
dist_html_DATA = manual.html style.css
dist_pdf_DATA = manual.pdf
2011-10-12 17:14:36 -04:00
# Embed Docbook's callout images in the distribution.
EXTRA_DIST += images
2011-10-12 17:14:36 -04:00
manual.html: $(DOCBOOK_FILES)
if test "$(XSLTPROC)" != ""; then \
$(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
--output manual.html \
$(docbookxsl)/html/docbook.xsl manual.xml; \
else \
2011-10-04 09:31:10 -04:00
echo "Please install xsltproc and rerun configure."; \
exit 1; \
fi
2011-11-22 10:46:07 -05:00
manual.pdf: $(DOCBOOK_FILES)
if test "$(DBLATEX)" != ""; then \
2011-11-22 11:01:55 -05:00
$(DBLATEX) $(dblatex_opts) manual.xml; \
2010-09-30 10:29:15 -04:00
else \
echo "Please install dblatex and rerun configure."; \
exit 1; \
fi
images:
$(MKDIR_P) images/callouts
if cp $(docbookxsl)/images/callouts/*.gif images/callouts; then \
chmod +wx images images/callouts; \
else \
echo "Please install Docbook XSL and try again."; \
exit 1; \
fi
install-data-hook: images
$(INSTALL) -d $(DESTDIR)$(htmldir)/images/callouts
$(INSTALL_DATA) images/callouts/* $(DESTDIR)$(htmldir)/images/callouts
distclean-hook:
-rm -rf images