先看例子一
.INTERMEDIATE: foo.gao
all: foo.gao
#pass
foo.gao:
@echo "test"
touch foo.gao
$make --dry-run
test
touch foo.gao
#pass
rm foo.gao
再看例子二
all: foo.gao
#pass
foo.gao:
@echo "test"
touch foo.gao
$make --dry-run
test
touch foo.gao
#pass
结束
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/09/21/2697056.html,如需转载请自行联系原作者