[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: order-only dependency and transitivity
From: |
Paul D. Smith |
Subject: |
Re: order-only dependency and transitivity |
Date: |
Wed, 9 Jun 2004 17:19:23 -0400 |
%% Ross Boylan <address@hidden> writes:
rb> Unfortunately, solving the toy problem in this case doesn't help with
rb> the real one. It would have a rule someting like this:
rb> m.touch: m.web
rb> ftangle -F m.web
rb> touch m.touch
rb> The product of ftangle is a lot of .cc and .h files, but because of
rb> the -F option only some of them are updated. So in terms of the
rb> example, it's as if the m.touch rule might or might not touch x.cc
rb> My current solution is something like this
rb> $(SOURCES): m.web
rb> ftangle -F m.web
rb> but this ends up running ftangle many times, once for each of the
rb> $(SOURCES) that do not get updated.
You almost had it... you have to do something like this:
$(SOURCES): m.touch
m.touch: m.web
ftangle -F m.web
@touch $@
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- order-only dependency and transitivity, Ross Boylan, 2004/06/09
- Re: order-only dependency and transitivity, Noel Yap, 2004/06/09
- Re: order-only dependency and transitivity, Ross Boylan, 2004/06/09
- Re: order-only dependency and transitivity, Noel Yap, 2004/06/09
- Re: order-only dependency and transitivity, Ross Boylan, 2004/06/09
- Re: order-only dependency and transitivity,
Paul D. Smith <=
- Re: order-only dependency and transitivity, Ross Boylan, 2004/06/09
- Re: order-only dependency and transitivity, Paul D. Smith, 2004/06/10
- Re: order-only dependency and transitivity, Boris Kolpackov, 2004/06/10
- Re: order-only dependency and transitivity, Ross Boylan, 2004/06/11
- Re: order-only dependency and transitivity, Paul D. Smith, 2004/06/10