]> granicus.if.org Git - postgis/commitdiff
Generate uninstall_rtpostgis.sql (#301)
authorSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 09:56:56 +0000 (09:56 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 09:56:56 +0000 (09:56 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8539 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/Makefile.in

index 5993e83715d620544e537ca89eac6a2b8cd09e0e..6b83af867c1126271d0bf057f232a33f207c3a73 100644 (file)
@@ -1,18 +1,20 @@
 #############################################################################
 # $Id$
 #
-# Copyright (c) 2009 Sandro Santilli <strk@keybit.net>
+# Copyright (c) 2009-2011 Sandro Santilli <strk@keybit.net>
 #
 # 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_PGSQL_VERSION=@POSTGIS_PGSQL_VERSION@
+
 MODULE_big=rtpostgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
 MODULEDIR=contrib/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
 
 # Files to be copied to the contrib/ directory
-DATA_built=rtpostgis.sql rtpostgis_drop.sql rtpostgis_upgrade_20_minor.sql rtpostgis_upgrade_cleanup.sql
+DATA_built=rtpostgis.sql rtpostgis_drop.sql rtpostgis_upgrade_20_minor.sql rtpostgis_upgrade_cleanup.sql uninstall_rtpostgis.sql
 DATA=
 
 # SQL objects (files requiring C pre-processing)
@@ -92,5 +94,8 @@ rtpostgis_upgrade.sql: rtpostgis.sql
 rtpostgis_upgrade_20_minor.sql: rtpostgis_drop.sql rtpostgis_upgrade_cleanup.sql rtpostgis_upgrade.sql 
        cat $^ > $@
 
+uninstall_rtpostgis.sql: rtpostgis.sql ../../utils/create_undef.pl 
+       $(PERL) ../../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
+
 distclean: clean
        $(RM) Makefile