mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
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.
28 lines
693 B
Makefile
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)/' $< > $@
|