Content #
如果某规则没有前导依赖,其目标(target)也不是磁盘上的文件,那么make会认为该规则的target在每次运行时都会被更新。以这样的规则为前导依赖的规则,每次运行时都会被执行。
Makefile一般会作如下使用:
clean: FORCE
rm $(objects)
FORCE:
其中的"FORCE"只是一个约定而成的名称,可以随便使用其它名称。由于FORCE规则的target每次会被更新,clean规则每次都会被执行。
Viewpoint #
From #
https://www.gnu.org/software/make/manual/html_node/Force-Targets.html