【发布时间】:2017-01-03 15:04:12
【问题描述】:
默认情况下,Make 将“触摸”提供的目标文件以“更新”。 为避免这种情况,您可以使用this option:
-W file, --what-if=file, --new-file=file, --assume-new=file
Pretend that the target file has just been modified. When used
with the -n flag, this shows you what would happen if you were to
modify that file. Without -n, it is almost the same as running a
touch command on the given file before running make, except that
the modification time is changed only in the imagination of make.
Makefile 本身中是否有一个等效的设置(可能是MAKEFLAGS 选项)来为 Makefile 中定义的所有目标全局假定此选项?
【问题讨论】: