automake
[Top][All Lists]
Advanced

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

Re: Conditional append


From: J.T. Conklin
Subject: Re: Conditional append
Date: Thu, 06 Jan 2005 06:04:39 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix)

Shaun Jackman <address@hidden> writes:
> The automake files of my project may or may not define CLEANFILES,
> they then include an automake snippet which conditionally appends a
> file to CLEANFILES. I can't use either = or += because I get either
>
> flash-image.am:4: CLEANFILES must be set with `=' before using `+='
>     or
> flash-image.am:4: CLEANFILES was already defined in condition TRUE,
> which includes condition FLASH_IMAGE ...
>
> How do I append to CLEANFILES in an included automake snippet?

I haven't tried this with CLEANFILES, but I have run the same problem
with other automake variables.  

I get around it with something like:

      CLEANFILES =

      if BUILD_FOO
      CLEANFILES += bar quux
      endif

Hope this helps,

    --jtc

-- 
J.T. Conklin




reply via email to

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