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 mpd_sima: mpd_sima.1.xml
20 xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
22 mpd_sima.cfg: mpd_sima.cfg.5.xml
23 xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
26 xmllint --xinclude --nowarning --noent mpd_sima.1.xml | $(XP) $(HXSL) - > ./mpd_sima.1.html
29 xmllint --xinclude --nowarning --noent mpd_sima.cfg.5.xml | $(XP) $(HXSL) - > ./mpd_sima.cfg.5.html
31 man: mpd_sima mpd_sima.cfg
33 html: simadb_cli_html mpd_sima_html mpd_sima.cfg_html
35 pdf: mpd-sima.1 mpd-sima.cfg.5
36 /usr/bin/man -l -Tps mpd-sima.1 | /usr/bin/ps2pdf - ./mpd_sima.pdf
37 /usr/bin/man -l -Tps mpd-sima.cfg.5 | /usr/bin/ps2pdf - ./mpd_sima.cfg.pdf
40 xmllint --noout --valid ./*.xml
43 rm -rf mpd-sima.1 mpd_sima.1.html
46 rm -rf mpd_sima.cfg.5 mpd_sima.cfg.5.html
48 clean: clean_mpd_sima clean_simadb_cli clean_mpd_sima.cfg