Variable values of the top-level make
can be passed to the sub-make
(sub directory makefile) through the environment by explicit request.
These variables are defined in the sub-make as defaults.
The special variables SHELL and MAKEFLAGS are always exported (unless you unexport them).
If you want to export specific variables to a sub-make, use the export directive, like this:
export variable
If you want to prevent a variable from being exported, use the unexport directive, like this:
unexport variable