+# **********************************************************************
+# * $Id$
+# *
+# * PostGIS - Spatial Types for PostgreSQL
+# * http://postgis.refractions.net
+# *
+# * Copyright (C) 2010-2011 Sandro Santilli <strk@keybit.net>
+# * Copyright (C) 2008 Mark Cave-Ayland
+# * Copyright (C) 2005 Refractions Research Inc.
+# *
+# * This is free software; you can redistribute and/or modify it under
+# * the terms of the GNU General Public Licence. See the COPYING file.
+# *
+# **********************************************************************
+
#
# PostGIS PGXS build system
#
+POSTGIS_PGSQL_VERSION=@POSTGIS_PGSQL_VERSION@
+
# NOTE: we can't use MODULE_big or PGXS insists in building a library...
PGIS_MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
MODULEDIR=contrib/$(PGIS_MODULE_big)
# Files to be copied to the contrib/ directory
-DATA_built=topology.sql topology_upgrade_20_minor.sql
+DATA_built=topology.sql topology_upgrade_20_minor.sql uninstall_topology.sql
# SQL objects (files requiring C pre-processing)
SQL_OBJS=topology.sql.in
topology.sql.in: sql/sqlmm.sql sql/populate.sql sql/polygonize.sql sql/gml.sql sql/query/getnodebypoint.sql sql/query/getedgebypoint.sql sql/query/getfacebypoint.sql sql/query/GetRingEdges.sql sql/manage/TopologySummary.sql sql/manage/CopyTopology.sql sql/manage/ManageHelper.sql
+uninstall_topology.sql: topology.sql ../utils/create_undef.pl
+ $(PERL) ../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
+
check: topology.sql
$(MAKE) -C test $@