I think that the closest you can use the combination $(MAKE) , which contains the exact file filename make, was called using $(MAKECMDGOALS) , which contains the goals you specify on the command line, and $(MAKEFLAGS) , which contains any definitions of variables and (a subset) of switches specified on the command line.
source share