The suffix was added to make compilers happy about preprocessing,
but invoking cpp directly should be just fine (SQLPP macro)
This is an experimental change under postgis/, if everyone is happy
the same thing will be done for raster/ and topology/
git-svn-id: http://svn.osgeo.org/postgis/trunk@11175
b70326c6-7e19-0410-871a-
916f4a2858ee
postgis/Makefile
postgis/legacy_gist.sql
postgis/legacy_minimal.sql
-postgis/legacy_minimal.sql.in
postgis/legacy.sql
-postgis/legacy.sql.in
postgis/postgis.sql
-postgis/postgis.sql.in
-postgis/postgis_upgrade_13_to_15.sql
-postgis/postgis_upgrade_14_to_15.sql
-postgis/postgis_upgrade_15_minor.sql
-postgis/postgis_upgrade_20_minor.sql
-postgis/postgis_upgrade_20_minor.sql.in
-postgis/postgis_upgrade_20_21.sql
-postgis/postgis_upgrade_20_21.sql.in
-postgis/postgis_upgrade_21_minor.sql
+postgis/postgis_upgrade_*.sql*
postgis/sqldefines.h
postgis/uninstall_legacy.sql
-postgis/uninstall_legacy.sql.in
postgis/uninstall_postgis.sql
raster/loader/Makefile
raster/loader/raster2pgsql
SQLPP = @SQLPP@
# SQL objects (files requiring pre-processing)
-SQL_OBJS=postgis.sql.in legacy.sql.in legacy_minimal.sql.in
+SQL_OBJS=postgis.sql legacy.sql legacy_minimal.sql
# PostgreSQL objects
PG_OBJS= \
# Borrow the $libdir substitution from PGXS but customise by adding the version number
%.sql: %.sql.in
- $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g" $< > $@
+ $(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
+ $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g" > $@
postgis_upgrade_20_21.sql.in: postgis_drop_before.sql postgis.sql postgis_drop_after.sql
cat $^ > $@
cp $< $@
# Generate any .sql.in files from .sql.in.c files by running them through the SQL pre-processor
-$(SQL_OBJS): %.in: %.in.c
- $(SQLPP) -I../libpgcommon $< | grep -v '^#' > $@
+#$(SQL_OBJS): %.in: %.in.c
+# $(SQLPP) -I../libpgcommon $< | grep -v '^#' > $@
# SQL objects are also dependent on postgis_config.h for PostgreSQL version
$(SQL_OBJS): ../postgis_config.h ../postgis_svn_revision.h
-postgis.sql.in: sqldefines.h long_xact.sql.in.c geography.sql.in.c
+#postgis.sql.in: sqldefines.h long_xact.sql.in.c geography.sql.in.c
-#uninstall_postgis.sql.in: sqldefines.h uninstall_sqlmm.sql.in.c uninstall_long_xact.sql.in.c uninstall_geography.sql.in.c
uninstall_postgis.sql: postgis.sql ../utils/create_undef.pl
$(PERL) ../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
-- Legacy functions without chip functions --
-- This is the full list including the legacy_minimal.sql (minimal)
-- so no need to install both legacy and the minimal
-#include "legacy_minimal.sql.in.c"
+#include "legacy_minimal.sql.in"
--- start functions that in theory should never have been used or internal like stuff deprecated
-- these were superceded by PostGIS_AddBBOX , PostGIS_DropBBOX, PostGIS_HasBBOX in 1.5 --
$$
LANGUAGE 'plpgsql' IMMUTABLE STRICT;
-#include "long_xact.sql.in.c"
-#include "geography.sql.in.c"
+/* Should we include the .sql directly here ? */
+#include "long_xact.sql.in"
+#include "geography.sql.in"