bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #30381] Don't avoid implicit rule recursion quite so soon.


From: Reinier Post
Subject: [bug #30381] Don't avoid implicit rule recursion quite so soon.
Date: Wed, 07 Jul 2010 15:26:18 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 FireTorrent/2.0.1 GTB7.1 ( .NET CLR 3.5.30729)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]