automake
[Top][All Lists]
Advanced

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

Re: CLEANFILES


From: Russell Shaw
Subject: Re: CLEANFILES
Date: Sun, 05 Aug 2007 16:31:42 +1000
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Cédric Lucantis wrote:
Le samedi 04 août 2007, Russell Shaw a écrit :
Hi,
I'm using automake 1.9.6.

In automake.am, i have: CLEANFILES: *.tab.c *.tab.h *.tab.callback

However, in the generated makefile, CLEANFILES appears, but is not
referenced anywhere. Therefore, "make clean" doesn't work as it
should.

Hi,

CLEANFILES is not a target but a user variable, so should have something like this instead :

CLEANFILES = $(wildcard *.tab) $(wildcard *.tab.h) ...

(I think the wildcard command is better than a shell expansion, but I'm not sure it makes a difference in that case. See info make for more about that)

I found the problem was i had "CLEANFILES:" instead of "CLEANFILES=".




reply via email to

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