]> granicus.if.org Git - postgis/commitdiff
add make check rule in doc/Makefile. Use xmllint to check postgis.xml documentation...
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Sat, 27 Mar 2010 17:50:25 +0000 (17:50 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Sat, 27 Mar 2010 17:50:25 +0000 (17:50 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5465 b70326c6-7e19-0410-871a-916f4a2858ee

doc/Makefile.in

index 34a2c319a60cea77143b2426e20f0fd3b2aa4966..2eea2a7a799c63b9c6dd11db454bc1a74d0cefed 100644 (file)
@@ -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."