* tests/suffix11.test: Check for suffixes containing `-'.
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 17 Nov 2003 21:13:00 +0000 (21:13 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 17 Nov 2003 21:13:00 +0000 (21:13 +0000)
* lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
suffixes.

ChangeLog
lib/Automake/Rule.pm
tests/suffix11.test

index ce9886b..c2aa232 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * 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.
index 88a12c4..f92c893 100644 (file)
@@ -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';
index 03cb393..7961875 100755 (executable)
@@ -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 $< $@