1 # Packages needed on debian:
3 # * docbook-xsl-ns (which depends on docbook-xsl-doc-html and docbook5-xml)
7 XSL=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl
8 HXSL=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/html/docbook.xsl
9 CONV5XSL="/usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl"
12 --param make.year.ranges 1\
13 --param make.single.year.ranges 1 \
14 --param man.charmap.use.subset 0 \
19 simadb_cli: simadb_cli.1.xml
20 xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
22 mpd_sima: mpd_sima.1.xml
23 xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
25 mpd_sima.cfg: mpd_sima.cfg.5.xml
26 xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
29 xmllint --xinclude --nowarning --noent mpd_sima.1.xml | $(XP) $(HXSL) - > ./mpd_sima.1.html
32 xmllint --xinclude --nowarning --noent simadb_cli.1.xml | $(XP) $(HXSL) - > ./simadb_cli.1.html
35 xmllint --xinclude --nowarning --noent mpd_sima.cfg.5.xml | $(XP) $(HXSL) - > ./mpd_sima.cfg.5.html
37 man: simadb_cli mpd_sima mpd_sima.cfg
39 html: simadb_cli_html mpd_sima_html mpd_sima.cfg_html
41 pdf: simadb_cli.1 mpd-sima.1 mpd-sima.cfg.5
42 /usr/bin/man -l -Tps mpd-sima.1 | /usr/bin/ps2pdf - ./mpd_sima.pdf
43 /usr/bin/man -l -Tps mpd-sima.cfg.5 | /usr/bin/ps2pdf - ./mpd_sima.cfg.pdf
44 /usr/bin/man -l -Tps simadb_cli.1 | /usr/bin/ps2pdf - ./simadb_cli.pdf
47 xmllint --noout --valid ./*.xml
50 rm -rf mpd-sima.1 mpd_sima.1.html
53 rm -rf simadb_cli.1 simadb_cli.1.html
56 rm -rf mpd_sima.cfg.5 mpd_sima.cfg.5.html
58 clean: clean_mpd_sima clean_simadb_cli clean_mpd_sima.cfg