debug makefile

dry run

$ make -n <target>

Add following rule to your Makefile

print-%  : ; @echo $* = $($*)

Then, if you want to find out the value of a makefile variable such as BLD_TOP, just:

$ make print-BLD_TOP

Display messages

$(info this is a message I want to show)

or @echo if in target actions:

test:
    @echo "this is a message I want to show"