On 2020-10-27 03:56, Nikolay Shaplov wrote:
My guess is that make have tendency to work in "recusive" way
remembering
variables or something else across the runs. But here I need to make
and
isolated run, so parent make session were isolated from child one. How
can I
do this?
Hi Nikolay,
One thing I can immediately think of is to use the env utility with the
-i option.
This is specified by POSIX. The -i option causes env to start with an
empty
environment, so that only those environment variables specified on the
env
command line will be present.
all:
env -i FOO=bar ... make -C
/home/nataraj/test/make-ci/zzz/build/postgres
Replace FOO=bar ... by the actual environment variables your Makefile
needs; you almost certainly need to set a PATH, and a few others.