2011-03-16 22:50:09 +00:00
|
|
|
DOCBOOK_FILES = installation.xml introduction.xml manual.xml projects.xml
|
2010-09-30 14:29:15 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = $(DOCBOOK_FILES) manual.pdf
|
|
|
|
|
2011-10-12 14:20:09 +00:00
|
|
|
xsltproc_opts = \
|
|
|
|
--param html.stylesheet \'style.css\' \
|
|
|
|
--param callout.graphics.extension \'.gif\'
|
|
|
|
|
2010-09-30 14:29:15 +00:00
|
|
|
dblatex_opts = \
|
|
|
|
-V \
|
|
|
|
-P doc.collab.show=0 \
|
|
|
|
-P latex.output.revhistory=0
|
|
|
|
|
2011-07-04 14:48:38 +00:00
|
|
|
# Include the manual in the tarball.
|
2011-10-12 14:20:09 +00:00
|
|
|
dist_html_DATA = manual.html style.css
|
2011-07-04 14:48:38 +00:00
|
|
|
dist_pdf_DATA = manual.pdf
|
|
|
|
|
2011-10-12 21:14:36 +00:00
|
|
|
# Embed Docbook's callout images in the distribution.
|
|
|
|
EXTRA_DIST = images
|
|
|
|
|
2011-07-04 14:48:38 +00:00
|
|
|
manual.html: $(DOCBOOK_FILES)
|
|
|
|
if test "$(XSLTPROC)" != ""; then \
|
2011-10-12 14:20:09 +00:00
|
|
|
$(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
|
|
|
|
--output manual.html \
|
2011-07-04 14:48:38 +00:00
|
|
|
$(docbookxsl)/html/docbook.xsl manual.xml; \
|
|
|
|
else \
|
2011-10-04 13:31:10 +00:00
|
|
|
echo "Please install xsltproc and rerun configure."; \
|
2011-07-04 14:48:38 +00:00
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2010-09-30 14:29:15 +00:00
|
|
|
manual.pdf : $(DOCBOOK_FILES)
|
2011-07-04 14:48:38 +00:00
|
|
|
if test "$(DBLATEX)" != ""; then \
|
|
|
|
$(DBLATEX) $(dblatex_opts) manual.xml; \
|
2010-09-30 14:29:15 +00:00
|
|
|
else \
|
|
|
|
echo "Please install dblatex and rerun configure."; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2011-10-12 14:20:09 +00:00
|
|
|
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
|