From 7b0d79a16bfbc87ffc6a3f860d29a5ab024fd76e Mon Sep 17 00:00:00 2001 From: Olivier Courtin Date: Sat, 27 Mar 2010 17:50:25 +0000 Subject: [PATCH] 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 --- doc/Makefile.in | 10 ++++++++++ 1 file changed, 10 insertions(+) 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." -- 2.50.1