This is the mail archive of the automake-prs@sourceware.cygnus.com mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

automake/22: SUFFIX_RULE_PATTERN too restrictive



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]