Error in multiple target eaxmple
Jimall opened this issue · 1 comments
Jimall commented
I think there is an error in multiple-targets chapter(https://makefiletutorial.com/#multiple-targets), miss :
after f1.o and f2.o, here is the screenshot:
should be:
# f1.o:
# echo $@
# f2.o:
# echo $@
and I think this will be more clear to show When there are multiple targets for a rule, the commands will be run for each target
and the meaning of $@
:
# f1.o:
# echo f1.o
# f2.o:
# echo f2.o