Re: Static multiple target rules

2010-03-02 Thread Edward Welbourne
I've been struggling for some time now with how to write rules for commands that generate multiple targets A familiar and annoying problem: make really believes in commands that generate just one (relevant) file, and doesn't fit so well with ones that generate several. The next thing to try

Re: Static multiple target rules

2010-03-02 Thread Edward Welbourne
Correcting myself: I missed out the $@ in y.tab.h y.tab.c y.output: yacc.ts tar xf $ -m $@ which ensures that each target is the only thing extracted when the rule to generate it is executed, Eddy. ___ Bug-make mailing list

RE: Static multiple target rules

2010-03-02 Thread Martin Dorey
instead of a touch-file, use a tar-file ! Yeah, one of my company's makefiles uses a similar intermediate file to good effect. We've been using the touch-file or sentinel solution elsewhere for years. I'd previously suggested replacing the sentinels with tar files so we could get rid of all

Re: Static multiple target rules

2010-03-02 Thread tom honermann
On 3/2/2010 2:45 AM, Edward Welbourne wrote: I've been struggling for some time now with how to write rules for commands that generate multiple targets A familiar and annoying problem: make really believes in commands that generate just one (relevant) file, and doesn't fit so well with