Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 668aa31

Browse files
feikesteenbergencevian
authored andcommitted
Reuse variables if they are already set
This allows other tools (the timescaledb-docker-ha images for example) to build this against pg11 for example.
1 parent 02eb5aa commit 668aa31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extension/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
PG_CONFIG=pg_config
1+
PG_CONFIG?=pg_config
22

33
EXTENSION=timescale_prometheus_extra
44
SQL_FILES=sql/timescale-prometheus.sql
55

66
EXT_VERSION = $(shell cat timescale_prometheus_extra.control | grep 'default' | sed "s/^.*'\(.*\)'$\/\1/g")
77
EXT_SQL_FILE = sql/$(EXTENSION)--$(EXT_VERSION).sql
8-
PG_VER=pg12
9-
TIMESCALEDB_VER=1.7.0
8+
PG_VER ?= pg12
9+
TIMESCALEDB_VER ?= 1.7.0
1010

1111
DATA = $(EXT_SQL_FILE)
1212
MODULE_big = $(EXTENSION)

0 commit comments

Comments
 (0)