How to print out a variable in makefile

后端 未结 15 1077
臣服心动
臣服心动 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:16

    if you use android make (mka) @echo $(NDK_PROJECT_PATH) will not work and gives you error *** missing separator. Stop." use this answer if you are trying to print variables in android make

    NDK_PROJECT_PATH := some_value
    $(warning $(NDK_PROJECT_PATH))
    

    that worked for me

提交回复
热议问题