0

我有一个 Makefile 导入另一个 Makefile,该 Makefile 由包含其中的目标生成。类似于以下内容:

more_makefile:
    touch $@

include more_makefile

这个过程可以正常工作,但是No such file or directory当 more_makefile 不存在时,每次点击包含行时都会收到警告,这可能会使新手感到困惑。有没有办法掩盖这个警告?

4

1 回答 1

3

添加连字符:

-include more_makefile
于 2013-01-23T05:54:17.067 回答