Re: Use "?=" operator for a contrib makefile in documentation

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Use "?=" operator for a contrib makefile in documentation
Дата
Msg-id 22cabb0d-dd5c-4c32-b426-0938c475b886@eisentraut.org
обсуждение исходный текст
Ответ на Use "?=" operator for a contrib makefile in documentation  (Maxim Orlov <orlovmg@gmail.com>)
Ответы Re: Use "?=" operator for a contrib makefile in documentation
Re: Use "?=" operator for a contrib makefile in documentation
Список 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 по дате отправления: