theicfire / makefiletutorial

Learn make by example

Home Page:http://makefiletutorial.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in multiple target eaxmple

Jimall opened this issue · comments

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:

image

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

Fixed, thank you! 9dd3b61