A Makefile can be debugged by adding the parameter -n to a make call: it then simply prints the commands it would run, without actually running them. Example:

make <target> -n

Source