tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: updating flex?
On Wed, May 21, 2008 at 05:18:36PM +0100, Patrick Welche wrote:
> cleanextra: .PHONY
> .if defined(CLEANFILES) && !empty(CLEANFILES)
> rm -f ${CLEANFILES}
> .endif
>
> but it doesn't seem that later CLEANFILES+=some flex files
> actually get added.
You're right - in normal use, i.e. "rm -f ${CLEANFILES}" above,
${CLEANFILES} gets expanded to the value it contains after all of the
Makefiles have been read and parsed. However, when CLEANFILES is used
as part of a cpp-style '.if' statement, i.e. the
.if defined(CLEANFILES) && !empty(CLEANFILES)
above, these are done in line, and so ${CLEANFILES} is evaluated there
and then.
Regards,
A previous victim of this
PS. Thanks for looking at flex, this is very useful.
Home |
Main Index |
Thread Index |
Old Index