On Wed, Jun 09, 2004 at 05:19:23PM -0400, Paul D. Smith wrote: > %% Ross Boylan <[EMAIL PROTECTED]> 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 $@ > Thank you; that seems to work. Two questions/comments:
First, this violates rule 2 of your own tips http://make.paulandlesley.org/rules.html. Should I be concerned? Though I didn't have that rule specifically in mind, I did think I'd get in some trouble if some of $(SOURCES) were permanently older than m.touch. Apparently not... Second, can anyone explain why my original example didn't work? Is it a bug? _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-make
