This should print all env variables from makefile. It will require writing standalone parser for LANG= make -p output. Don't know how nicely this will work under different make systems though. Possible complexity is in recursive makefile system: every makefile can set its own variables, some investigation needed to know whether this affects result.
This should print all env variables from makefile. It will require writing standalone parser for
LANG= make -p
output. Don't know how nicely this will work under different make systems though. Possible complexity is in recursive makefile system: every makefile can set its own variables, some investigation needed to know whether this affects result.