1 ## Copyright (c) 2009 Openismus GmbH <http://www.openismus.com/>
3 ## This file is part of libsigc++.
5 ## libsigc++ is free software: you can redistribute it and/or modify it
6 ## under the terms of the GNU Lesser General Public License as published
7 ## by the Free Software Foundation, either version 2.1 of the License,
8 ## or (at your option) any later version.
10 ## libsigc++ is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 ## See the GNU Lesser General Public License for more details.
15 ## You should have received a copy of the GNU Lesser General Public License
16 ## along with this library. If not, see <http://www.gnu.org/licenses/>.
18 DOCBOOK_STYLESHEET ?= http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
20 html_tutorialdir = $(libdocdir)/tutorial/html
21 dist_html_tutorial_DATA = $(sort manual/html/index.html $(call vpath_listall,manual/html/*.html))
23 dist_noinst_DATA += manual/libsigc_manual.xml
25 DISTCLEANFILES += $(addprefix manual/libsigc_manual.,dvi pdf ps)
26 MAINTAINERCLEANFILES += manual/html/*
28 # Set the use.id.as.filename param so that we don't use the chapter / section
29 # number as the filename, otherwise the url will change every time anything is
30 # re-ordered or inserted in the documentation
31 xslt_params = $(strip \
32 --param toc.section.depth 1 \
33 --stringparam chunker.output.indent 'yes' \
34 --stringparam chunker.output.encoding 'UTF-8' \
35 --stringparam toc.list.type 'ul' \
36 --stringparam use.id.as.filename '1' \
39 manual_srcfile = $(srcdir)/manual/libsigc_manual.xml
41 # Make sure that the documentation will always have been generated before
42 # executing the commands of a rule that depends on files in reference/html/.
43 reference/html/%: | manual/html/index.html
45 manual/html/index.html: $(manual_srcfile)
46 -$(AM_V_at)rm -f manual/html/*
47 $(AM_V_at)$(MKDIR_P) manual/html
48 $(AM_V_GEN)xsltproc $(xslt_params) -o manual/html/ --catalogs '$(DOCBOOK_STYLESHEET)' $(manual_srcfile)
50 manual/libsigc_manual.dvi: $(manual_srcfile)
51 $(AM_V_GEN)db2dvi -o manual $(manual_srcfile)
53 manual/libsigc_manual.pdf: $(manual_srcfile)
54 $(AM_V_GEN)db2pdf -o manual $(manual_srcfile)
56 manual/libsigc_manual.ps: $(manual_srcfile)
57 $(AM_V_GEN)db2ps -o manual $(manual_srcfile)