Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-21 Thread Henning Makholm
Scripsit "Paul D. Smith" <[EMAIL PROTECTED]> > %% Henning Makholm <[EMAIL PROTECTED]> writes: > hm> Here is why I need it: I use a compiler, `mosmlc', that reads a > hm> `*.sml' source file and write a `*.uo' file with object code and a > hm> `*.ui' file with a machine-readable interface sum

Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-21 Thread Henning Makholm
Scripsit "Paul D. Smith" <[EMAIL PROTECTED]> > When GNU make gets this feature, I don't think it will use this syntax. > I was thinking something like adding a special delimiter: > target1 target2 +: prerequisites > command > or "|:" or something like that. One possibility that didn't

Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-21 Thread Paul D. Smith
%% Henning Makholm <[EMAIL PROTECTED]> writes: hm> One possibility that didn't introduce any new syntax would be that if hm> for a rule hm>target1 target2: prerequisites hm> command1 hm> command2 hm> the automatic variables $@ and $% are never unfolded during the

Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-21 Thread Paul D. Smith
%% Henning Makholm <[EMAIL PROTECTED]> writes: >> .foobar.temp: foobar.sml >>mosmlc $< >>touch $@ >> binary: .foobar.temp >> Gross, but it usually works. hm> Only when nothing (or at least nothing with commands) depends on hm> `binary': since the empty command does

Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-20 Thread Paul D. Smith
%% Philip Guenther <[EMAIL PROTECTED]> writes: pg> Yeah, this can be useful in some cases. I remember doing this with pg> SunOS 4's make using the syntax pg> target1 + target2: dependencies pg> command pg> but GNU make does not (currently) support that. I don't like this syntax: it

Re: Make feature rq: Non-pattern rules with multi-target commands

2002-10-20 Thread Paul D. Smith
%% Henning Makholm <[EMAIL PROTECTED]> writes: hm> I think it would be cool if there was some way to write a hm> non-pattern rule that tells Make that this particular command hm> creates more than one file simultaneously. I.e., a multi-target hm> rule that works like multi-target pattern r

Make feature rq: Non-pattern rules with multi-target commands

2002-10-19 Thread Henning Makholm
I think it would be cool if there was some way to write a non-pattern rule that tells Make that this particular command creates more than one file simultaneously. I.e., a multi-target rule that works like multi-target pattern rules. Here is why I need it: I use a compiler, `mosmlc', that reads a `