gnu make - stop on error when target of makefile rule is a foreach function -
i have makefile defines several rules target foreach function.
$(foreach var,$(list), $($(var)_stuff) $($(var)_more_stuff)): @echo building $@ $^... $(cc) $(flags) ... is there way make quit when encountering error without going through entire list.
the foreach evaluated , substituted before any of rules executed. behaviour of should identical if had hardcoded rule without using foreach. in other words, it's not directly relevant problem.
there few possible explanations you're seeing, described in manual here:
- you running make
-kor--keep-going - you running make
-ior--ignore-errors - your targets defined prerequisites of special
.ignoretarget - your recipe starts
- - your recipe isn't returning non-zero exit status
Comments
Post a Comment