]> git.ipfire.org Git - thirdparty/automake.git/commit
lex: "make clean" removes .c files from non-distributed .l
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 13 May 2011 18:51:50 +0000 (20:51 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 May 2011 14:20:51 +0000 (16:20 +0200)
commitfea854ed044c3bdb3f7d85fafa35e1d17a9e63fc
tree0aade3055c5d2cf792a76560a9cc0d0f1ae75148
parentb67712acad6d2b0be448687c76e69a43b71e27b4
lex: "make clean" removes .c files from non-distributed .l

Previously, while automake did *not* distribute C source and header
files derived from non-distributed Lex 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 files in CLEANFILES or in DISTCLEANFILES by
hand.

This change fixes this issue, by making non-distributed `.c' files
generated by non-distributed Lex sources cleaned by "make clean".
A similar problem for Yacc support had been fixed with the commit
v1.11-263-ged2c8bc.

* tests/automake.in (lang_lex_target_hook): Make C source files
derived from non-distributed Lex files cleaned by "make clean",
not only by "make maintainer-clean".
* tests/lex-clean.test: New test.
* tests/lex-clean-cxx.test: Likewise.
* tests/lex-nodist.test: Likewise.
* tests/lex-pr204.test: Likewise.
* tests/pr204.test: For consistency, renamed ...
* tests/yacc-pr204.test: ... to this, and updated to keep it
more in sync with 'lex-pr204.test'.
* tests/yacc-nodist.test: Updated to keep it more in sync with
'lex-nodist.test'.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.
ChangeLog
NEWS
automake.in
tests/Makefile.am
tests/Makefile.in
tests/lex-clean-cxx.test [new file with mode: 0755]
tests/lex-clean.test [new file with mode: 0755]
tests/lex-nodist.test [new file with mode: 0755]
tests/lex-pr204.test [new file with mode: 0755]
tests/yacc-nodist.test
tests/yacc-pr204.test [moved from tests/pr204.test with 82% similarity]