+ -
当前位置:首页 → 问答吧 → 发现geany不错,比什么emacs, vim 等好用多了

发现geany不错,比什么emacs, vim 等好用多了

时间:2010-08-05

来源:互联网

初学makefile 编写脚本如下:

var1 =
var2 = hello

all:
ifndef $var1
$var1 = hello
endif
ifeq ($var1,$var2)
echo "equal"
else
echo "not equal"
endif

.PHONY: all

运行错误:
testmf:11: *** commands commence before first target. Stop.
第11行echo "not equal" 与第9行 echo "not equal" 前面均有tab建,
不知道到底哪里出错了。求大家指点一下

作者: emmanule   发布时间: 2010-08-05

经过几次实验发现错误处在echo命令行处。
如果echo语句开始前未输入[Tab]建 则提示
testsubst:9: *** missing separator. Stop.
如果echo语句以[Tab]建开始 则提示
testsubst:9: *** commands commence before first target. Stop.

我又测试了教程上的几个不同的例子,发现都是如此。在条件判断语句中,一使用echo语句就出错*** commands commence before first target. Stop.。
继续纳闷中............

作者: emmanule   发布时间: 2010-08-05

初学makefile 编写脚本如下:

var1 =
var2 = hello

all:
ifndef $var1
$var1 = hello
endif
ifeq ($var1,$var2)
echo "equal"
else
echo "not equal"
endif

.PHONY: all

运行错误:
testmf:11: *** commands commence before first target. Stop.
第11行echo "not equal" 与第9行 echo "not equal" 前面均有tab建,
不知道到底哪里出错了。求大家指点一下

作者: emmanule   发布时间: 2010-08-05

经过几次实验发现错误处在echo命令行处。
如果echo语句开始前未输入[Tab]建 则提示
testsubst:9: *** missing separator. Stop.
如果echo语句以[Tab]建开始 则提示
testsubst:9: *** commands commence before first target. Stop.

我又测试了教程上的几个不同的例子,发现都是如此。在条件判断语句中,一使用echo语句就出错*** commands commence before first target. Stop.。
继续纳闷中............

作者: emmanule   发布时间: 2010-08-05