From: Alexandre Oliva Date: Mon, 26 Apr 1999 23:20:42 +0000 (+0000) Subject: * automake.in (check_canonical_spelling): Insert AM before names X-Git-Tag: merging-into-user-dep-gen~36 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b53a420c8a9de159e72e042ca93fcc2cc4a9fa23;p=automake.git * automake.in (check_canonical_spelling): Insert AM before names starting with non-letters. * automake.texi: Document it. --- diff --git a/ChangeLog b/ChangeLog index 2415d29e..6fdf972f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-04-27 Alexandre Oliva + + * automake.in (check_canonical_spelling): Insert AM before names + starting with non-letters. + * automake.texi: Document it. + 1999-04-26 Alexandre Oliva * automake.in (handle_lib_objects_cond): Do not use quotemeta, it diff --git a/automake.in b/automake.in index d31244b8..ab1fbf42 100755 --- a/automake.in +++ b/automake.in @@ -1502,6 +1502,7 @@ sub check_canonical_spelling local ($xname, $xt); ($xname = $name) =~ tr/A-Za-z0-9_/_/c; + $xname =~ s/^([0-9_])/AM\1/; if ($xname ne $name) { local ($xt); diff --git a/automake.texi b/automake.texi index dc37d164..768e50c7 100644 --- a/automake.texi +++ b/automake.texi @@ -502,6 +502,15 @@ when making macro references. For example, if your program is named @code{sniff-glue}, the derived variable name would be @code{sniff_glue_SOURCES}, not @code{sniff-glue_SOURCES}. +Additionally, because some versions of make require macro names to start +with a @emph{letter}, when a name that starts with a non-letter +character is canonicalized, the characters @code{AM} are prepended to +it. Therefore, if a program is named @code{123test} or @code{_foo}, the +derived variable names would be @code{AM123test_SOURCES} or +@code{AM_foo_SOURCES}. Note that, even if such a program name would not +appear in the beginning of the name of the macro, @code{AM} is still +inserted, i.e., use @code{EXTRA_AM123test_SOURCES}, not +@code{EXTRA_123test_SOURCES}. @node Examples, Invoking Automake, Generalities, Top @chapter Some example packages diff --git a/stamp-vti b/stamp-vti index 3bbba983..cdea05a7 100644 --- a/stamp-vti +++ b/stamp-vti @@ -1,3 +1,3 @@ -@set UPDATED 22 April 1999 +@set UPDATED 27 April 1999 @set EDITION 1.4a @set VERSION 1.4a diff --git a/version.texi b/version.texi index 3bbba983..cdea05a7 100644 --- a/version.texi +++ b/version.texi @@ -1,3 +1,3 @@ -@set UPDATED 22 April 1999 +@set UPDATED 27 April 1999 @set EDITION 1.4a @set VERSION 1.4a