对 makefile 中 .INTERMEDIATE 的学习
先看例子一
.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
结束