Éric Lemoine b5a205c8f2 Make pointcloud and pointcloud_postgis versions match
Previously the version of pointcloud was 1.1.0 while the version of
pointcloud_postgis was 1.0.0. With this commit we ensure that the
versions are the same.

This commit also adds a PC_PostGIS_Version function that returns
the version of the pointcloud_postgis extension.
2018-04-27 08:38:50 +02:00

28 lines
693 B
Makefile

# pointcloud
include ../config.mk
#MODULE_big = pointcloud_postgis
#OBJS =
SED = sed
EXTENSION = pointcloud_postgis
EXTVERSION=$(shell cat ../Version.config)
DATA_built = \
$(EXTENSION).control \
$(EXTENSION)--$(EXTVERSION).sql
#REGRESS = pointcloud
# Add in build/link flags for lib
#PG_CPPFLAGS += -I../lib
#SHLIB_LINK += $(filter -lm, $(LIBS)) $(XML2_LDFLAGS) $(ZLIB_LDFLAGS) ../lib/$(LIB_A)
# We are going to use PGXS for sure
include $(PGXS)
$(EXTENSION).control: $(EXTENSION).control.in Makefile
$(SED) -e 's/@POINTCLOUD_VERSION@/$(EXTVERSION)/' $< > $@
$(EXTENSION)--$(EXTVERSION).sql: $(EXTENSION).sql.in Makefile
$(SED) -e 's/@POINTCLOUD_VERSION@/$(EXTVERSION)/' $< > $@