fix?(package): postgreact

This commit is contained in:
zerosummed
2025-04-17 05:20:41 +03:00
parent 29ff6989e5
commit fb8fa34ff2
10 changed files with 76 additions and 47 deletions

View File

@@ -0,0 +1,16 @@
EXTENSION ?= postgreact
EXTENSION_VERSION ?= 1.0
# INFO(nrv): just in case idk how pgxs Makefile and shit all work
EXTVERSION = $(EXTENSION_VERSION)
MODULE_big = $(EXTENSION)
DATA = $(EXTENSION)--$(EXTENSION_VERSION).sql
OBJS = $(EXTENSION).o
PG_CONFIG = pg_config
$(BUILD_DIR)/$(EXTENSION).control:
sed "s/@EXTENSION_VERSION@/$(EXTVERSION)/g" $(EXTENSION).control.in > $@
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)