Recognize the lexer and parser sources.

This commit is contained in:
Dag-Erling Smørgrav 2015-01-03 00:31:52 +00:00
parent dd667a0656
commit 7ca2a8903f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276599

View file

@ -51,7 +51,11 @@ sub get_sources($) {
close(MAKE);
chomp($objs);
$objs =~ s/\.l?o\b/.c/g;
return (split(/\s+/, $objs));
return map {
/lexer/ && s/c$/l/;
/parser/ && s/c$/y/;
$_;
} split(/\s+/, $objs);
}
MAIN:{
@ -70,4 +74,3 @@ MAIN:{
}
1;