This is the mail archive of the
automake-prs@sourceware.cygnus.com
mailing list for the automake project.
automake/22: SUFFIX_RULE_PATTERN too restrictive
- To: automake-gnats at sourceware dot cygnus dot com
- Subject: automake/22: SUFFIX_RULE_PATTERN too restrictive
- From: clasen at mathematik dot uni-freiburg dot de
- Date: 7 Nov 1999 19:36:42 -0000
- Reply-To: clasen at mathematik dot uni-freiburg dot de
- Resent-Cc: automake-prs at sourceware dot cygnus dot com
- Resent-Reply-To: automake-gnats@sourceware.cygnus.com, clasen@mathematik.uni-freiburg.de
>Number: 22
>Category: automake
>Synopsis: SUFFIX_RULE_PATTERN too restrictive
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 07 11:41:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Matthias Clasen
>Release: automake 1.4a as shipped with RedHat 6.0
>Organization:
>Environment:
RedHat Linux 6.0
>Description:
Automake doesn't recognize suffix rules for converting
.m4 files into .cxx files, since it doesn't allow numbers
in suffixes. Make has no problem with these rules, so I
guess automake accept them as well.
>How-To-Repeat:
Try the following Makefile.am fragment
SUFFIXES = .m4 .mx
.mx.cxx:
cp $< $@
.m4.cxx:
cp $< $@
And run automake --verbose. You'll get output like
automake: reading Makefile.am
Sources ending in .mx become .cxx
but the corresponding line for .m4 is missing.
>Fix:
replace the line
$SUFFIX_RULE_PATTERN = "^\\.([a-zA-Z]+)\\.([a-zA-Z]+)\$";
by
$SUFFIX_RULE_PATTERN = "^\\.([a-zA-Z0-9]+)\\.([a-zA-Z0-9]+)\$";
>Release-Note:
>Audit-Trail:
>Unformatted: