From: Olivier Courtin Date: Sat, 27 Mar 2010 17:50:25 +0000 (+0000) Subject: add make check rule in doc/Makefile. Use xmllint to check postgis.xml documentation... X-Git-Tag: 2.0.0alpha1~3088 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b0d79a16bfbc87ffc6a3f860d29a5ab024fd76e;p=postgis add make check rule in doc/Makefile. Use xmllint to check postgis.xml documentation against docbook dtd. git-svn-id: http://svn.osgeo.org/postgis/trunk@5465 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/Makefile.in b/doc/Makefile.in index 34a2c319a..2eea2a7a7 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -151,6 +151,16 @@ garden: postgis_aggs_mm.xml $(XSLTPROC) -o gardentest.sql xsl/postgis_gardentest.sql.xsl postgis.xml endif + + +ifeq ($(XSLTPROC),) +check: requirements_not_met_xsltproc +else +check: postgis_aggs_mm.xml + xmllint --loaddtd --xinclude --valid postgis.xml > /dev/null +endif + + requirements_not_met_xsltproc: @echo @echo "configure was unable to find 'xsltproc' which is required to build the documentation."