How to print out a variable in makefile

In my makefile, I have a variable ‘NDK_PROJECT_PATH’, my question is how can I print it out when it compiles?

I read Make file echo displaying “$PATH” string and I tried:

@echo $(NDK_PROJECT_PATH)
@echo $(value NDK_PROJECT_PATH)

Both gives me

"build-local.mk:102: *** missing separator.  Stop."

Any one knows why it is not working for me?

Leave a Comment