[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
maintainer-clean and yacc/lex files
From: |
Allan Saddi |
Subject: |
maintainer-clean and yacc/lex files |
Date: |
Wed, 18 Jul 2001 16:13:24 -0700 (PDT) |
Hi there,
It seems that maintainer-clean doesn't delete generated yacc/lex
files correctly. If "parser.y" and "lexer.l" are defined in the
source, maintainer-clean attempts to delete "parserc",
"parserh", and "lexerl". It should delete "parser.c",
"parser.h", and "lexer.c" instead.
The following patch corrects this.
Thanks.
--
Allan Saddi "The Earth is the cradle of mankind,
address@hidden but we cannot live in the cradle
http://philosophysw.com/asaddi/ forever." - K.E. Tsiolkovsky
--- automake.in.orig Sun Jul 15 09:47:28 2001
+++ automake.in Wed Jul 18 15:32:29 2001
@@ -4764,7 +4764,7 @@
# statically, and the GNU rules say that yacc/lex output files
# should be removed by maintainer-clean. So that's what we
# do.
- push (@maintainer_clean_files, $base . $hname, $base . $cname);
+ push (@maintainer_clean_files, "$base.$hname", "$base.$cname");
}
$output_rules .= "\n";
@@ -4811,8 +4811,8 @@
# should be removed by maintainer-clean. So that's what we
# do.
$file =~ /^(.*)\.(l|ll|l\+\+|lxx)$/;
- ($cname = $2) =~ tr/y/c/;
- push (@maintainer_clean_files, $1 . $cname);
+ ($cname = $2) =~ tr/l/c/;
+ push (@maintainer_clean_files, "$1.$cname");
}
if (! defined $configure_vars{'LEX'})
- maintainer-clean and yacc/lex files,
Allan Saddi <=