]> kaliko git repositories - mpd-sima.git/blobdiff - data/man/Makefile
Add test-tags-config helper
[mpd-sima.git] / data / man / Makefile
index 0e6b1f3d134c82153c91036eddb6f240416fd13a..7871223f89277b45ed48ca7f5dc49b56bed3f830 100644 (file)
@@ -16,8 +16,11 @@ OPTIONS=--nonet\
 
 all: man
 
+test-tags-config: test-tags-config.1.xml
+       xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
+
 simadb_cli: simadb_cli.1.xml
-       $(XP) $(OPTIONS) $(XSL) $<
+       xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
 
 mpd_sima: mpd_sima.1.xml
        xmllint --xinclude --nowarning --noent $< | $(XP) $(OPTIONS) $(XSL) -
@@ -29,12 +32,12 @@ 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
+       xmllint --xinclude --nowarning --noent simadb_cli.1.xml | $(XP) $(HXSL) - > ./simadb_cli.1.html
 
 mpd_sima.cfg_html:
-       $(XP) $(HXSL) mpd_sima.cfg.5.xml > ./mpd_sima.cfg.5.html
+       xmllint --xinclude --nowarning --noent mpd_sima.cfg.5.xml | $(XP) $(HXSL) - > ./mpd_sima.cfg.5.html
 
-man: simadb_cli mpd_sima mpd_sima.cfg
+man: test-tags-config simadb_cli mpd_sima mpd_sima.cfg
 
 html: simadb_cli_html mpd_sima_html mpd_sima.cfg_html
 
@@ -49,4 +52,11 @@ valid:
 clean_mpd_sima:
        rm -rf mpd-sima.1 mpd_sima.1.html
 
-clean: clean_mpd_sima
+clean_simadb_cli:
+       rm -rf simadb_cli.1 simadb_cli.1.html
+
+clean_mpd_sima.cfg:
+       rm -rf mpd_sima.cfg.5 mpd_sima.cfg.5.html
+
+clean: clean_mpd_sima clean_simadb_cli clean_mpd_sima.cfg
+       rm -rf ./*.pdf