MODULEDIR=contrib/$(MODULE_big)
# Files to be copied to the contrib/ directory
-SQL_built=postgis.sql postgis_for_extension.sql uninstall_postgis.sql postgis_upgrade.sql postgis_upgrade_for_extension.sql postgis_proc_set_search_path.sql legacy.sql uninstall_legacy.sql legacy_minimal.sql legacy_gist.sql
+SQL_built=postgis.sql postgis_for_extension.sql uninstall_postgis.sql postgis_upgrade.sql postgis_upgrade_for_extension.sql postgis_proc_set_search_path.sql legacy.sql uninstall_legacy.sql legacy_minimal.sql legacy_gist.sql
DATA=../spatial_ref_sys.sql
# SQL objects (files requiring pre-processing)
# Get protobuf-c compiler command
PROTOCC=@PROTOCC@
-# Generate Mapbox Vector Tile encoder/decoder using protobuf-c compiler
+# Generate Mapbox Vector Tile encoder/decoder using protobuf-c compiler
vector_tile.pb-c.c vector_tile.pb-c.h: vector_tile.proto
$(PROTOCC) --c_out=. $<
-# Generate Geobuf encoder/decoder using protobuf-c compiler
+# Generate Geobuf encoder/decoder using protobuf-c compiler
geobuf.pb-c.c geobuf.pb-c.h: geobuf.proto
$(PROTOCC) --c_out=. $<
%.sql: %.sql.in
$(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
$(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g" > $@
-
+
postgis_upgrade_for_extension.sql: postgis_drop_before.sql postgis_upgrade_for_extension.sql.in postgis_drop_after.sql
cat $^ >> $@
-
+
postgis_for_extension.sql: postgis.sql.in
$(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
$(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g" > $@
#this is redundant but trying to fold in with extension just hangs
postgis_upgrade.sql.in: postgis.sql ../utils/postgis_proc_upgrade.pl
$(PERL) ../utils/postgis_proc_upgrade.pl $< UNUSED > $@
-
+
postgis_upgrade_for_extension.sql.in: postgis_for_extension.sql ../utils/postgis_proc_upgrade.pl
$(PERL) ../utils/postgis_proc_upgrade.pl $< UNUSED > $@
-
+
postgis_proc_set_search_path.sql: postgis.sql ../utils/postgis_proc_set_search_path.pl
$(PERL) ../utils/postgis_proc_set_search_path.pl $< UNUSED > $@
cat $^ >> $@
echo "COMMIT;" >> $@
-sfcgal_upgrade.sql.in: sfcgal.sql ../utils/postgis_proc_upgrade.pl
+sfcgal_upgrade.sql.in: sfcgal.sql ../utils/postgis_proc_upgrade.pl
$(PERL) ../utils/postgis_proc_upgrade.pl $< UNUSED > $@
sfcgal_upgrade.sql: sfcgal_upgrade.sql.in postgis_drop_after.sql