Re: Use "?=" operator for a contrib makefile in documentation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Use "?=" operator for a contrib makefile in documentation
Date
Msg-id 22cabb0d-dd5c-4c32-b426-0938c475b886@eisentraut.org
Whole thread Raw
In response to Use "?=" operator for a contrib makefile in documentation  (Maxim Orlov <orlovmg@gmail.com>)
Responses Re: Use "?=" operator for a contrib makefile in documentation
Re: Use "?=" operator for a contrib makefile in documentation
List pgsql-hackers
On 25.09.25 15:17, Maxim Orlov wrote:
> I think that the Makefile should be written so that variable values,
> specifically, PG_CONFIG, can be given to it from the environment rather
> than the make command line. As a result, using the "?=" operator rather
> than "=" to set a default value to the PG_CONFIG variable appears more
> acceptable.

I think the current text is preferable.  This allows running

make PG_CONFIG=...

so that you can pick a different PostgreSQL installation for a 
particular build.

If you always want to use a particular PostgreSQL installation, then you 
could alter the PATH in the environment.

I don't know that there is a use case of setting only PG_CONFIG in the 
environment that is not covered by these other two approaches.




pgsql-hackers by date:

Previous
From: Florents Tselai
Date:
Subject: Re: Add jsonb_translate(jsonb, from, to)
Next
From: "Matheus Alcantara"
Date:
Subject: Remove unused parameter form find_window_run_conditions()