I have been trying to execute all prerequisites for a particular target in makefile. But whenever the prerequisite is a target with single/multiple info values, I find that the other prerequisites are not executed(which come after the 'info' based target)
I have tried reducing the number of info in values in prerequisites to just 1. in that case also i could not find other prerequisites to execute. Thus my problem is to understand how to execute a single/multi-line info based prerequisite and continue executing other prerequisites.
# 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