mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
7eee0aae59
git-svn-id: http://svn.osgeo.org/postgis/trunk@6391 b70326c6-7e19-0410-871a-916f4a2858ee
30 lines
719 B
Makefile
30 lines
719 B
Makefile
#
|
|
# PostGIS PGXS build system
|
|
#
|
|
|
|
# Files to be copied to the contrib/ directory
|
|
DATA_built=topology.sql
|
|
|
|
# SQL objects (files requiring C pre-processing)
|
|
SQL_OBJS=topology.sql.in
|
|
|
|
# Extra files to remove during 'make clean'
|
|
EXTRA_CLEAN=$(SQL_OBJS)
|
|
|
|
# PGXS information
|
|
PG_CONFIG = @PGCONFIG@
|
|
PGXS := @PGXS@
|
|
include $(PGXS)
|
|
|
|
|
|
# Unfortunately we have to copy this from the PGXS Makefile as it only gets picked up
|
|
# if MODULE_big is defined
|
|
%.sql: %.sql.in
|
|
sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@
|
|
|
|
# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor
|
|
$(SQL_OBJS): %.in: %.in.c
|
|
$(CPP) -traditional-cpp $< | grep -v '^#' > $@
|
|
|
|
topology.sql.in: sql/sqlmm.sql sql/populate.sql
|