【发布时间】:2019-06-28 05:44:38
【问题描述】:
我一直在尝试执行 makefile 中特定目标的所有先决条件。但只要先决条件是具有单个/多个信息值的目标,我发现其他先决条件没有执行(在基于“信息”的目标之后)
我尝试将先决条件中的值中的信息数量减少到只有 1。在这种情况下,我也找不到其他要执行的先决条件。 因此,我的问题是了解如何执行基于单行/多行信息的先决条件并继续执行其他先决条件。
# Define new line and separator
.PHONY:newline
newline:
@echo
.PHONY:separator
separator:
$(info -------------------------------)
# Print the project details
.PHONY:project
project:
$(info Project Details)
$(info Author : xyz)
# Help menu
.PHONY:help
help: newline separator project separator newline
Expected outcome
$ make help
-------------------------------
Project Details
Author : xyz
-------------------------------
Outcome received
$ make help
-------------------------------
Project Details
Author : xyz
【问题讨论】: