yacc: "make clean" removes .c and .h files from non-distributed .y
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 7 Jan 2011 14:44:47 +0000 (15:44 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 7 Jan 2011 15:01:40 +0000 (16:01 +0100)
commited2c8bc8d83137428ce1976061d199768c1917eb
tree4024206a994d9699735347cb0467b914845bed1f
parent23934e1f5b4c552065c9499bf61c65455266989c
yacc: "make clean" removes .c and .h files from non-distributed .y

Previously, while automake did *not* distribute C source and header
files derived from non-distributed Yacc sources, it still caused
them to be removed only by "make maintainer-clean" only, and not by
simply "make clean" or "make distclean".
This caused "make distcheck" to fail, unless the developer put
those generated .c and .h files in CLEANFILES or in DISTCLEANFILES
by hand.
This change fixes this issue, by making non-distributed `.c' and
`.h' files generated by non-distributed Yacc sources cleaned by
"make clean".

* tests/automake.in (lang_yacc_target_hook): Make C source and
header files derived from non-distributed Yacc files cleaned by
"make clean", not only by "make maintainer-clean".
* tests/yacc-clean.test: New test.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.
ChangeLog
NEWS
automake.in
tests/Makefile.am
tests/Makefile.in
tests/yacc-clean.test [new file with mode: 0755]