2008-05-22 14:31:02 +00:00
|
|
|
#
|
|
|
|
# PostGIS PGXS build system
|
|
|
|
#
|
2005-10-13 16:21:49 +00:00
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# Files to be copied to the contrib/ directory
|
|
|
|
DATA_built=topology.sql
|
2005-10-13 16:21:49 +00:00
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# SQL objects (files requiring C pre-processing)
|
|
|
|
SQL_OBJS=topology.sql.in
|
2005-10-13 16:21:49 +00:00
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# Extra files to remove during 'make clean'
|
|
|
|
EXTRA_CLEAN=$(SQL_OBJS)
|
2005-10-13 16:21:49 +00:00
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# PGXS information
|
2008-07-28 10:03:31 +00:00
|
|
|
PG_CONFIG = @PGCONFIG@
|
2008-11-06 15:15:06 +00:00
|
|
|
PGXS := @PGXS@
|
2008-05-22 14:31:02 +00:00
|
|
|
include $(PGXS)
|
2005-10-13 16:21:49 +00:00
|
|
|
|
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# 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' $< >$@
|
2005-10-13 16:21:49 +00:00
|
|
|
|
2008-05-22 14:31:02 +00:00
|
|
|
# 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 '^#' > $@
|
2005-10-13 16:21:49 +00:00
|
|
|
|