$(MAKE) distclean
rm -f configure
+garden:
+ @echo '------------------------------------------------------'
+ @echo 'Generating SQL file from Documentation'
+ @echo '------------------------------------------------------'
+ $(MAKE) -C doc garden
+ @echo '------------------------------------------------------'
+ @echo 'Launch regression Test'
+ @echo '------------------------------------------------------'
+ $(MAKE) -C regress garden
+
test check: postgis
$(MAKE) -C liblwgeom/cunit check
$(MAKE) -C regress check
rm -f $(PGSQL_MANDIR)/man1/shp2pgsql.1
rm -f $(PGSQL_MANDIR)/man1/pgsql2shp.1
+ifeq ($(XSLTPROC),)
+garden: requirements_not_met_xsltproc
+else
+garden: postgis_aggs_mm.xml
+ $(XSLTPROC) -o gardentest.sql xsl/postgis_gardentest.sql.xsl postgis.xml
+endif
+
requirements_not_met_xsltproc:
@echo
@echo "configure was unable to find 'xsltproc' which is required to build the documentation."
sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis.sql > postgis.sql
@USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS)
+garden:
+ createdb postgis_garden
+ createlang plpgsql postgis_garden
+ psql -d postgis_garden < ../postgis/postgis.sql
+ psql -d postgis_garden < ../spatial_ref_sys.sql
+ @echo '-------------------------------------------------'
+ @echo 'Regression tests in progress (it will take time)'
+ @echo 'Result output: ./regress/garden_result.txt'
+ @echo '-------------------------------------------------'
+ psql -d postgis_garden < ../doc/gardentest.sql > garden_result.txt 2>&1
+ dropdb postgis_garden
+
cleanup:
@sleep 1
@dropdb postgis_reg > /dev/null