automake
[Top][All Lists]
Advanced

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

Re: Conditional append


From: Stepan Kasal
Subject: Re: Conditional append
Date: Fri, 7 Jan 2005 10:16:41 +0100
User-agent: Mutt/1.4.1i

Hi,

On Thu, Jan 06, 2005 at 09:26:04AM -0800, Shaun Jackman wrote:
> bin_PROGRAMS=hello
> CLEANFILES=something
> include $(top_srcdir)/extra.am
> 
> or simply
> 
> bin_PROGRAMS=goodbye
> include $(top_srcdir)/extra.am
> 
> and extra.am needs to add one file to CLEANFILES in both cases.

well, I see two ways:

1) Either each Makefile.am calling extra.am has to set CLEANFILES, so the
later snippet has to set
        CLEANFILES =
before the include.  It shouldn't be difficult to make that change
automatically.

2) Or the extra.am starts with
        CLEANFILES =
and each caller takes care not to touch it before the include.
So the former snippet will become

bin_PROGRAMS = hello
include $(top_srcdir)/extra.am
CLEANFILES += something

HTH,
        Stepan Kasal





reply via email to

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