Re: wish: multiple target patterns in a static pattern rule

2004-04-14 Thread Britton Kerin
> bk> Implicit rules can handle multiple target patterns, is there any > bk> reason static pattern rules couldn't also? > > The reason is that static pattern rules are shorthand for writing > explicit rules, not longhand for writing implicit rules. > > That is, a static pattern rule is turne

Re: wish: multiple target patterns in a static pattern rule

2004-04-13 Thread Boris Kolpackov
Ted Stern <[EMAIL PROTECTED]> writes: > You can reduce potential compilation cascades even further by > ensuring that your *.gob processor compares previously existing > output files against the new output and retains the original > timestamp if no changes have been made. This is a good examp

Re: wish: multiple target patterns in a static pattern rule

2004-04-13 Thread Paul D. Smith
%% Britton Kerin <[EMAIL PROTECTED]> writes: bk> I have a program gob2 which does this: bk> some_file.gob -> {some_file.c some_file.h some_file-private.h} bk> So I would like to be able to write this static pattern rule: bk> # This rule says how to generate C files from GOB fi

Re: wish: multiple target patterns in a static pattern rule

2004-04-13 Thread Ted Stern
On 13 Apr 2004 at 10:27 PDT, Britton Kerin wrote: > > I have a program gob2 which does this: > > some_file.gob -> {some_file.c some_file.h some_file-private.h} > > So I would like to be able to write this static pattern rule: > > # This rule says how to generate C files from GOB files. >

wish: multiple target patterns in a static pattern rule

2004-04-13 Thread Britton Kerin
I have a program gob2 which does this: some_file.gob -> {some_file.c some_file.h some_file-private.h} So I would like to be able to write this static pattern rule: # This rule says how to generate C files from GOB files. $($(MN)_GOB_GENERATED_FILES): %.c %.h %-private.h: %.gob