Makefile¶
Check if a variable is defined¶
Forcing use of a specific shell¶
The SHELL
variable can be set to force a given shell.
Warning
Don't use ?=
to assign to this variable. SHELL
is always set, so this assignment will never execute.
Get directory of current Makefile¶
Warning
This will be the directory of the most recently run makefile.
If this expression is computed in a file that is sourced, then it will be the directory of the sourced Makefile, NOT the original file.