~wvuloud/loud-platform/lolucid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# -- makefile --

# Example debian/rules file taken from the loud-reference package. The
# file loud-reference.xml is in the package root.

# Include our two basic cdbs files.
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/loud/class/docbook.mk

# XSLFLAGS are passed to every call to xsltproc performed as part of
# the make. The xml source for lcsee-reference is split up into
# individual files which are included using xincludes, and so we must
# pass the --xinclude switch. We also want to use the default loud
# stylesheet, and thus pass the appropriate switch.
XSLFLAGS=--xinclude --stringparam html.stylesheet "/usr/share/xml/docbook/stylesheet/loud/loud.css"

# This target is always called as a part of the build process.
common-build-indep:: loud-reference.pdf loud-reference.html

# Cleaning the directory involves removing the generated files -- we
# want to package the output (html/pdf), but store the source (xml).
clean::
	rm -f loud-reference.pdf loud-reference.html loud-reference.fo
# The .fo file is a halfway point for transforming from xml to print
# outputs (specifically pdf in this case). In general people do not
# want this file.

# It's that simple! The output files will be generated at build
# time. Install those files using debian/install or debian/docs, or
# whatever method is appropriate.