]> granicus.if.org Git - postgis/commitdiff
Encode dependency of postgis objects on postgis_config.h
authorSandro Santilli <strk@keybit.net>
Thu, 22 Dec 2011 10:21:12 +0000 (10:21 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 22 Dec 2011 10:21:12 +0000 (10:21 +0000)
Fixes ./configure && make check after switching between different
PostgreSQL versions.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8502 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/Makefile.in

index f70fa49ca839c22841b4e19fd1b805d3620af71c..aca24136a6972ea70ec9bb81a82e90e467499969 100644 (file)
@@ -104,7 +104,10 @@ endif
 
 # Make all PostGIS objects depend upon liblwgeom, so that if an underlying
 # change is made, a PostGIS rebuild is triggered.
-$(PG_OBJS): ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a
+#
+# Also they are all dependent on postgis_config.h
+#
+$(PG_OBJS): ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a ../postgis_config.h
 
 # Borrow the $libdir substitution from PGXS but customise by adding the version number
 %.sql: %.sql.in
@@ -120,4 +123,7 @@ postgis_upgrade_20_minor.sql: postgis_upgrade_20_minor.sql.in
 $(SQL_OBJS): %.in: %.in.c
        $(CPP) -traditional-cpp -I../libpgcommon $< | grep -v '^#' > $@
 
+# SQL objects are also dependent on postgis_config.h for PostgreSQL version
+$(SQL_OBJS): ../postgis_config.h
+
 postgis.sql.in: geography.sql.in.c