environment variable set in make not seen by all sub-shells
Advertisements I need to set env variables in a makefile and use them in a python script invoked by the makefile. For some reason the python script is not able to see these env variables. export VAR := env_var PY_VAR := python -c "import os; print(‘VAR=’ + str(os.environ.get(‘VAR’)))" all: @echo -n "echoing: VAR=" @echo $${VAR}… Read More environment variable set in make not seen by all sub-shells