In below snippet of Makefile the normal way of makefile behave is when foo.o has dependency listed here like /tmp/foo.o: abc.o xyz.o lmn.o etc then while parsing make goes to the rule which list how to make the dependency (abc.o xyz.o lmn.o) but here the target /tmp/foo.o has listed no dependency even then how the next line executed or it simply ignored.
Please explain this as soon as possible that how and why that line (%.o: $$(addsuffix /%.c,foo bar) foo.h) executed. Any body help is highly appreciated . I need it because of my lecture on make file.
.SECONDEXPANSION:
/tmp/foo.o:
%.o: $$(addsuffix /%.c,foo bar) foo.h @echo $^