Skip to content

Commit e85e5bf

Browse files
authored
Allow overriding of pg_config (#589)
Allow user to override the pg_config using in Makefile. For example: ```bash PG_CONFIG = /path/to/my/pg_config make install ```
1 parent 1ec65d6 commit e85e5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ EXTENSION = pg_partman
22
EXTVERSION = $(shell grep default_version $(EXTENSION).control | \
33
sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
44

5-
PG_CONFIG = pg_config
5+
PG_CONFIG ?= pg_config
66
PG_VER = $(shell $(PG_CONFIG) --version | sed "s/^[^ ]* \([0-9]*\).*$$/\1/" 2>/dev/null)
77

88
PG_VER_min = 14

0 commit comments

Comments
 (0)