From 8e1c45e267ce6c7a462009a9ab96aad341a52d69 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Mon, 17 Nov 2003 21:13:00 +0000 Subject: [PATCH] * tests/suffix11.test: Check for suffixes containing `-'. * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in suffixes. --- ChangeLog | 4 ++++ lib/Automake/Rule.pm | 2 +- tests/suffix11.test | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce9886ba9..c2aa23284 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2003-11-17 Alexandre Duret-Lutz + * tests/suffix11.test: Check for suffixes containing `-'. + * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in + suffixes. + * lib/Automake/Rule.pm (define): Suggest using target-local instead of target-am, not target-am-local. * tests/overrid.test: Check the diagnostic for clean-am. diff --git a/lib/Automake/Rule.pm b/lib/Automake/Rule.pm index 88a12c4db..f92c893e9 100644 --- a/lib/Automake/Rule.pm +++ b/lib/Automake/Rule.pm @@ -95,7 +95,7 @@ non-object). =cut my $_SUFFIX_RULE_PATTERN = - '^(\.[a-zA-Z0-9_(){}$+@]+)(\.[a-zA-Z0-9_(){}$+@]+)' . "\$"; + '^(\.[a-zA-Z0-9_(){}$+@\-]+)(\.[a-zA-Z0-9_(){}$+@\-]+)' . "\$"; # Suffixes found during a run. use vars '@_suffixes'; diff --git a/tests/suffix11.test b/tests/suffix11.test index 03cb3934a..79618751f 100755 --- a/tests/suffix11.test +++ b/tests/suffix11.test @@ -20,6 +20,7 @@ # Tests that Automake understand multiple suffix rules on the same line. # PR/371 and PR/372: Reported by Duncan Gibson. +# We also check for suffixes containing `-'. . ./defs || exit 1 @@ -33,9 +34,9 @@ EOF cat >Makefile.am << 'END' bin_PROGRAMS = foo bar baz foo_SOURCES = foo.x_ -bar_SOURCES = bar.y_ -baz_SOURCES = baz1.x_ baz2.y_ -.y_.c .x_.c: +bar_SOURCES = bar.y-z +baz_SOURCES = baz1.x_ baz2.y-z +.y-z.c .x_.c: cp $< $@ .z_.c .w_.x_ : cp $< $@ -- 2.47.2