X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=data%2Fman%2FMakefile;fp=data%2Fman%2FMakefile;h=0e6b1f3d134c82153c91036eddb6f240416fd13a;hb=e49af6fd502e9b4e43c1d2f1b93cb01a2e381e4d;hp=0000000000000000000000000000000000000000;hpb=26407984575aaf451eddfe3395a23779ab2c6640;p=mpd-sima.git diff --git a/data/man/Makefile b/data/man/Makefile new file mode 100644 index 0000000..0e6b1f3 --- /dev/null +++ b/data/man/Makefile @@ -0,0 +1,52 @@ +# Packages needed on debian: +# * xsltproc +# * docbook-xsl-ns (which depends on docbook-xsl-doc-html and docbook5-xml) +# * libxml2-utils +# + +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 + xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) - + +mpd_sima.cfg: mpd_sima.cfg.5.xml + xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) - + +mpd_sima_html: + xmllint --xinclude --nowarning --noent mpd_sima.1.xml | $(XP) $(HXSL) - > ./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 + +clean_mpd_sima: + rm -rf mpd-sima.1 mpd_sima.1.html + +clean: clean_mpd_sima