* lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
suffixes.
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.
=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';
# 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
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 $< $@