automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Antwort: Re: Feature request: meta files & wildcards (once again)


From: Alex Hornby
Subject: Re: Antwort: Re: Feature request: meta files & wildcards (once again)
Date: 08 May 2002 09:22:32 +0100

On Tue, 2002-05-07 at 17:46, Alexandre Duret-Lutz wrote:
> [snip]
> This issue isn't really related to suffix rules, is it?  It's
> just that Make doesn't well support rules that output many
> files.
> 

Well, some makes do... :) e.g.

%_stub.c %_skel.c %_stub.h %_skel.h: %.idl
        $(idl) $<

However for portability reasons I know I can't use that.

>  Alex> My solution is to wrap a locking script around the suffix rules so that
>  Alex> any one .idl file only has the idl compiler run on it once.
> 
> Do you mean something like this?
> 
> | SUFFIXES = _stub.c _skel.c _stub.h _skel.h .idl
> | 
> | .idl_stub.c:
> |         $(locker) $(idl) $<
> | 
> | .idl_stub.h:
> |         $(locker) $(idl) $<
> | 
> | .idl_skel.c:
> |         $(locker) $(idl) $<
> | 
> | .idl_skel.h:
> |         $(locker) $(idl) $<
> 

Yes, thats very similar to what I use.

> Can't this be rewritten as follows?
> 
> | .SUFFIXES: _stub.c _skel.c _stub.h _skel.h .idl
> | 
> | .idl_stub.c:
> |       $(idl) $<
> | 
> | _stub.c_stub.h:
> |     @:
> | 
> | _stub.c_skel.c:
> |     @:
> | 
> | _stub.c_skel.h:
> |     @:

Hmmm, never thought of that, I'll give it a try.

Cheers,
Alex.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]