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=".