]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - docs/doc-manual.am
Adjust the name of the library to match upstream
[ext/sigc++-2.0.git] / docs / doc-manual.am
1 ## Copyright (c) 2009  Openismus GmbH  <http://www.openismus.com/>
2 ##
3 ## This file is part of libsigc++.
4 ##
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.
9 ##
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.
14 ##
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/>.
17
18 DOCBOOK_STYLESHEET ?= http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
19
20 html_tutorialdir = $(libdocdir)/tutorial/html
21 dist_html_tutorial_DATA = $(sort manual/html/index.html $(call vpath_listall,manual/html/*.html))
22
23 dist_noinst_DATA += manual/libsigc_manual.xml
24
25 DISTCLEANFILES += $(addprefix manual/libsigc_manual.,dvi pdf ps)
26 MAINTAINERCLEANFILES += manual/html/*
27
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'             \
37         )
38
39 manual_srcfile = $(srcdir)/manual/libsigc_manual.xml
40
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
44
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)
49
50 manual/libsigc_manual.dvi: $(manual_srcfile)
51         $(AM_V_GEN)db2dvi -o manual $(manual_srcfile)
52
53 manual/libsigc_manual.pdf: $(manual_srcfile)
54         $(AM_V_GEN)db2pdf -o manual $(manual_srcfile)
55
56 manual/libsigc_manual.ps: $(manual_srcfile)
57         $(AM_V_GEN)db2ps -o manual $(manual_srcfile)