Make error: missing separator

后端 未结 12 2337
说谎
说谎 2020-11-22 08:07

I am getting the following error running make:

Makefile:168: *** missing separator.  Stop.

What is causing this?

12条回答
  •  爱一瞬间的悲伤
    2020-11-22 08:33

    In my case, this error was caused by the lack of a mere space. I had this if block in my makefile:

    if($(METHOD),opt)
    CFLAGS=
    endif
    

    which should have been:

    if ($(METHOD),opt)
    CFLAGS=
    endif
    

    with a space after if.

提交回复
热议问题