From 8687edf28d1f29d4c6efaa8acc3742306f1e49ba Mon Sep 17 00:00:00 2001 From: Mikail <6186720+NyanKiyoshi@users.noreply.github.com> Date: Tue, 2 May 2023 13:26:55 +0200 Subject: [PATCH] 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`. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c305a4c..592ab20 100644 --- a/Makefile +++ b/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). # NO_INSTALLCHECK = 1 -PG_CONFIG = pg_config +PG_CONFIG ?= pg_config ifdef USE_PGXS MAJORVERSION := $(shell pg_config --version | awk {'print $$2'} | cut -f1 -d".")