mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Make pg_config configurable in Makefile invocation (#392)
This allows to override the `PG_CONFIG` variable through environment variables when wanting to use another one that is not in the `PATH`.
This commit is contained in:
2
Makefile
2
Makefile
@@ -18,7 +18,7 @@ REGRESS = basic version guc pgsm_query_id functions counters relations database
|
|||||||
# which typical installcheck users do not have (e.g. buildfarm clients).
|
# which typical installcheck users do not have (e.g. buildfarm clients).
|
||||||
# NO_INSTALLCHECK = 1
|
# NO_INSTALLCHECK = 1
|
||||||
|
|
||||||
PG_CONFIG = pg_config
|
PG_CONFIG ?= pg_config
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
MAJORVERSION := $(shell pg_config --version | awk {'print $$2'} | cut -f1 -d".")
|
MAJORVERSION := $(shell pg_config --version | awk {'print $$2'} | cut -f1 -d".")
|
||||||
|
|||||||
Reference in New Issue
Block a user