From 99f224896c2d2e9fb710dd0ebdc0243af0e44cd9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 1 Feb 1999 23:15:57 +0000 Subject: [PATCH] * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++ lex source. (lang_yacc_finish): Likewise. (lang_lex_finish): Likewise. --- ChangeLog | 7 +++++++ automake.in | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe97ae6..12bd9cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-02-02 Tom Tromey + + * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++ + lex source. + (lang_yacc_finish): Likewise. + (lang_lex_finish): Likewise. + 1999-02-01 Tom Tromey * automake.in (handle_dist_worker): Correctly find find in $$d, diff --git a/automake.in b/automake.in index ac3b71b..08b7a17 100755 --- a/automake.in +++ b/automake.in @@ -313,11 +313,11 @@ $obsolete_rx = '(' . join ('|', keys %obsolete_macros) . ')'; ®ister_language ('yacc', '', 1, 'y'); ®ister_language ('yaccxx', 'CXXLINK', 0, - 'y++', 'yy', 'yxx'); + 'y++', 'yy', 'yxx', 'ypp'); ®ister_language ('lex', '', 1, 'l'); ®ister_language ('lexxx', 'CXXLINK', 0, - 'l++', 'll', 'lxx'); + 'l++', 'll', 'lxx', 'lpp'); ®ister_language ('asm', '', 0, 's', 'S'); ®ister_language ('f77', 'F77LINK', 0, @@ -4672,7 +4672,7 @@ sub lang_yacc_finish # Now generate rule to make the header file. This should only # be generated if `yacc -d' specified. But right now there is # no way to determine that. FIXME: examine AM_YFLAGS? - $file =~ /^(.*)\.(y|yy|y\+\+|yxx)$/; + $file =~ /^(.*)\.(y|yy|y\+\+|yxx|ypp)$/; $base = $1; ($hname = $2) =~ tr/y/h/; ($cname = $2) =~ tr/y/c/; @@ -4730,7 +4730,7 @@ sub lang_lex_finish # statically, and the GNU rules say that yacc/lex output files # should be removed by maintainer-clean. So that's what we # do. - $file =~ /^(.*)\.(l|ll|l\+\+|lxx)$/; + $file =~ /^(.*)\.(l|ll|l\+\+|lxx|lpp)$/; ($cname = $2) =~ tr/y/c/; push (@maintainer_clean_files, $1 . $cname); } -- 2.7.4