The variable MAKECMDGOALS contains the list of targets that were specified on the command line, no matter how many (it’s empty if there were none).
The variable MAKECMDGOALS contains the list of targets that were specified on the command line, no matter how many (it’s empty if there were none).