gnu-misc-discuss
[Top][All Lists]
Advanced

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

Re: make idiom for multiple file output


From: Bernd Jendrissek
Subject: Re: make idiom for multiple file output
Date: Wed, 12 Jun 2002 13:11:27 +0200

In article <address@hidden> Wayne Throop <address@hidden> wrote:
>Is there a well known idiom for a single action that produces
>multiple files, when those files have names not related by a stem?

[snip]

>The closest I can come up with is
>
>         foo: bar;
>         bar: mumble; cmd
>
>Note that
>
>         foo: bar
>         bar: mumble; cmd
>
>doesn't work properly.

I think automake deals with this also.  1.6.1b now deals with yacc parsers
better than it used to.  (I.e. yy.tab.h can be remade after it is deleted.)

The gist of it is that "foo: bar" needs a rule.  "rm -f bar; $(MAKE) bar"
or some variant of that seems to work.

bernd



reply via email to

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