File: Makefile

package info (click to toggle)
mpd-sima 0.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 688 kB
  • ctags: 342
  • sloc: python: 2,696; xml: 924; sh: 329; makefile: 86
file content (46 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Packages needed on debian:
#    * xsltproc
#    * docbook-xsl-ns (which depends on docbook-xsl-doc-html and docbook5-xml)
#

XSL=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl
HXSL=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/html/docbook.xsl
CONV5XSL="/usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl"
XP=/usr/bin/xsltproc
OPTIONS=--nonet\
   --param make.year.ranges 1\
   --param make.single.year.ranges 1 \
   --param man.charmap.use.subset 0 \
   --novalid \

all: man

simadb_cli: simadb_cli.1.xml
	$(XP) $(OPTIONS) $(XSL) $<

mpd_sima: mpd_sima.1.xml
	$(XP) $(OPTIONS) $(XSL) $<

mpd_sima.cfg: mpd_sima.cfg.5.xml
	$(XP) $(OPTIONS) $(XSL) $<

mpd_sima_html:
	$(XP) $(HXSL) mpd_sima.1.xml > ./mpd_sima.1.html

simadb_cli_html:
	$(XP) $(HXSL) simadb_cli.1.xml > ./simadb_cli.1.html

mpd_sima.cfg_html:
	$(XP) $(HXSL) mpd_sima.cfg.5.xml > ./mpd_sima.cfg.5.html

man: simadb_cli mpd_sima mpd_sima.cfg

html: simadb_cli_html mpd_sima_html mpd_sima.cfg_html

pdf: simadb_cli.1 mpd-sima.1 mpd-sima.cfg.5
	/usr/bin/man -l -Tps mpd-sima.1 | /usr/bin/ps2pdf - ./mpd_sima.pdf
	/usr/bin/man -l -Tps mpd-sima.cfg.5 | /usr/bin/ps2pdf - ./mpd_sima.cfg.pdf
	/usr/bin/man -l -Tps simadb_cli.1 | /usr/bin/ps2pdf - ./simadb_cli.pdf

valid:
	xmllint --noout --valid ./*.xml