日期:2014-05-16  浏览次数:20639 次

这个Makefile到底错在哪,

A=a
all:
        if [ $(A) = a ]; then\
                echo 1\
        fi


报错:
[www.cc.com@/home/cc/Box/mak]make
if [ a = a ]; then\
                echo 1\
        fi
/bin/sh: -c: line 3: syntax error: unexpected end of file
make: *** [all] 错误 1
[www.cc.com@/home/cc/Box/mak]

makefile

------解决方案--------------------
在echo 1后面加上;