Make error: missing separator

后端 未结 12 2287
说谎
说谎 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:44

    In my case, I was actually missing a tab in between ifeq and the command on the next line. No spaces were there to begin with.

    ifeq ($(wildcard $DIR_FILE), )
    cd $FOLDER; cp -f $DIR_FILE.tpl $DIR_FILE.xs;
    endif
    

    Should have been:

    ifeq ($(wildcard $DIR_FILE), )
    cd $FOLDER; cp -f $DIR_FILE.tpl $DIR_FILE.xs;
    endif
    

    Note the is an actual tab character

提交回复
热议问题