2013-07-19 13:01:18 +00:00
|
|
|
DOCBOOK_FILES = installation.xml introduction.xml manual.xml projects.xml hacking.xml
|
2010-09-30 14:29:15 +00:00
|
|
|
|
2011-10-12 21:23:21 +00:00
|
|
|
EXTRA_DIST = $(DOCBOOK_FILES)
|
2010-09-30 14:29:15 +00:00
|
|
|
|
2011-10-12 14:20:09 +00:00
|
|
|
xsltproc_opts = \
|
2012-05-11 22:22:46 +00:00
|
|
|
--param callout.graphics.extension \'.gif\' \
|
|
|
|
--param section.autolabel 1 \
|
|
|
|
--param section.label.includes.component.label 1
|
|
|
|
|
2011-10-12 14:20:09 +00:00
|
|
|
|
2011-07-04 14:48:38 +00:00
|
|
|
# Include the manual in the tarball.
|
2020-03-13 15:17:48 +00:00
|
|
|
dist_html_DATA = manual.html
|
2011-07-04 14:48:38 +00:00
|
|
|
|
2011-10-12 21:14:36 +00:00
|
|
|
# Embed Docbook's callout images in the distribution.
|
2011-10-12 21:23:21 +00:00
|
|
|
EXTRA_DIST += images
|
2011-10-12 21:14:36 +00:00
|
|
|
|
2011-07-04 14:48:38 +00:00
|
|
|
manual.html: $(DOCBOOK_FILES)
|
2016-03-22 11:53:28 +00:00
|
|
|
$(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
|
|
|
|
--output manual.html \
|
|
|
|
$(docbookxsl)/xhtml/docbook.xsl manual.xml
|
2010-09-30 14:29:15 +00:00
|
|
|
|
2011-10-12 14:20:09 +00:00
|
|
|
images:
|
|
|
|
$(MKDIR_P) images/callouts
|
2016-03-22 11:53:28 +00:00
|
|
|
cp $(docbookxsl)/images/callouts/*.gif images/callouts
|
|
|
|
chmod +wx images images/callouts
|
2011-10-12 14:20:09 +00:00
|
|
|
|
|
|
|
install-data-hook: images
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(htmldir)/images/callouts
|
|
|
|
$(INSTALL_DATA) images/callouts/* $(DESTDIR)$(htmldir)/images/callouts
|
2016-10-10 13:52:11 +00:00
|
|
|
ln -sfn manual.html $(DESTDIR)$(htmldir)/index.html
|
2011-10-12 14:20:09 +00:00
|
|
|
|
|
|
|
distclean-hook:
|
|
|
|
-rm -rf images
|