但是,运行make将不起作用:Makefilemake: Nothing to be done for `all'.Successfully remade target file `all'.
make: Nothing to be done for `all'.它看起来像是在运行%.all规则,但却跳过了正文。但是在注释掉.PHONY行的情况下,Make会运行目标,但随后会自
command to build bar>
<command to build baz>
当我调用make如何定义display_result目标,使其知道到目前为止所有目标是成功还是失败(以及哪个目标失败),以便它可以显示适当的状态消息(例如“成功”或“失败:bar失败”)?我在Ubuntu上使用带有Bash的GNU Make 4.1。