URL: <http://savannah.gnu.org/bugs/?30381>
Summary: Don't avoid implicit rule recursion quite so soon. Project: make Submitted by: r_p Submitted on: Wed 07 Jul 2010 03:26:17 PM GMT Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: This caught me by surprise (sh> is my shell prompt here): sh> echo foo > foo sh> echo '%.rev : %; rev $? > $@' > Makefile sh> make foo.rev.rev make: *** No rule to make target `foo.rev.rev'. Stop. sh> make foo.rev foo.rev.rev rev foo > foo.rev rev foo.rev > foo.rev.rev Come on, make(1)! Yes I'm asking you to apply a rule twice, but with a different target! This keeps biting me in the make file I'm writing at the moment. My proposal is to keep a stack of the targets, and only stop recursion if a target already occurs on the stack. Or least let me set a limit to how often you're willing to try this. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30381> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make