[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30381] Don't avoid implicit rule recursion quite so soon.
From: |
Paul D. Smith |
Subject: |
[bug #30381] Don't avoid implicit rule recursion quite so soon. |
Date: |
Wed, 07 Jul 2010 17:02:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6 |
Update of bug #30381 (project make):
Item Group: None => Enhancement
Component Version: None => 3.81
_______________________________________________________
Follow-up Comment #1:
This is the documented behavior, however:
No single implicit rule can appear more than once in a chain. This
means that `make' will not even consider such a ridiculous thing as
making `foo' from `foo.o.o' by running the linker twice. This
constraint has the added benefit of preventing any infinite loop in the
search for an implicit rule chain.
Also, your example is too simple. How does make know that if it just went
"one step further" it would find a way to build that target? Suppose you had
a chain that worked like this:
%.x : %.y ; cat > $@
%.y : %.x ; cat > $@
Now, without the above rule, this would be an infinite loop.
If you really want a feature like this then you'll need to come up with a
much more precise definition of exactly how the system should behave. I'll
leave this open as an enhancement.
Until then you'll have to define a target for the intermediate files (e.g.,
foo.rev: here) in order to get the behavior you want.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30381>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Reinier Post, 2010/07/07
- [bug #30381] Don't avoid implicit rule recursion quite so soon.,
Paul D. Smith <=
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Paul D. Smith, 2010/07/07
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Reinier Post, 2010/07/09
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Reinier Post, 2010/07/09
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Paul D. Smith, 2010/07/09
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Olexiy Buyanskyy, 2010/07/17
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Reinier Post, 2010/07/19
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Reinier Post, 2010/07/19
- [bug #30381] Don't avoid implicit rule recursion quite so soon., Olexiy Buyanskyy, 2010/07/19