How to print out a variable in makefile

后端 未结 15 1089
臣服心动
臣服心动 2020-12-07 06:51

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" st

15条回答
  •  孤城傲影
    2020-12-07 07:35

    I usually echo with an error if I wanted to see the variable value.(Only if you wanted to see the value. It will stop execution.)

    @echo $(error NDK_PROJECT_PATH= $(NDK_PROJECT_PATH))

提交回复
热议问题