[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: support `-' in suffix rules
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: support `-' in suffix rules |
Date: |
Mon, 17 Nov 2003 22:12:49 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
I'm checking this in.
2003-11-17 Alexandre Duret-Lutz <address@hidden>
* tests/suffix11.test: Check for suffixes containing `-'.
* lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
suffixes.
Index: lib/Automake/Rule.pm
===================================================================
RCS file: /cvs/automake/automake/lib/Automake/Rule.pm,v
retrieving revision 1.5
diff -u -r1.5 Rule.pm
--- lib/Automake/Rule.pm 17 Nov 2003 19:08:30 -0000 1.5
+++ lib/Automake/Rule.pm 17 Nov 2003 21:11:35 -0000
@@ -95,7 +95,7 @@
=cut
my $_SUFFIX_RULE_PATTERN =
- '^(\.[a-zA-Z0-9_()address@hidden)(\.[a-zA-Z0-9_()address@hidden)' . "\$";
+ '^(\.[a-zA-Z0-9_()address@hidden)(\.[a-zA-Z0-9_()address@hidden)' . "\$";
# Suffixes found during a run.
use vars '@_suffixes';
Index: tests/suffix11.test
===================================================================
RCS file: /cvs/automake/automake/tests/suffix11.test,v
retrieving revision 1.3
diff -u -r1.3 suffix11.test
--- tests/suffix11.test 3 Jul 2003 18:58:50 -0000 1.3
+++ tests/suffix11.test 17 Nov 2003 21:11:35 -0000
@@ -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 @@
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 $< $@
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: support `-' in suffix rules,
Alexandre Duret-Lutz <=