[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dashes in Makefile macro names

From: Eric Blake
Subject: Re: dashes in Makefile macro names
Date: Thu, 03 Feb 2011 09:29:56 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 01/28/2011 04:38 AM, Bruno Haible wrote:
> Hi,
> Can you use $(FOO-BAR) in Makefile? It's not portable in POSIX [1]
>   "Applications shall select macro names from the set of characters
>    consisting solely of periods, underscores, digits, and alphabetics
>    from the portable character set"
> And the Autoconf manual too says that it's not portable [2].
> But Paul Eggert found a number of such Makefile macro names in Emacs [3],
> which have apparently not been hurting for years.
> Prompted by this, I've tested the support for Makefile macro names with
> dashes in
>   - GNU make,
>   - dmake 4.12,
>   - smake 1.2.1,
>   - the vendor 'make' in
>     - MacOS X,
>     - FreeBSD 6.4,
>     - OpenBSD 4.4,
>     - NetBSD 5.0,
>     - AIX 5.1,
>     - HP-UX 10.20,
>     - IRIX 6.5 (also pmake, smake),
>     - OSF/1 5.1,
>     - Solaris 2.6 (also dmake),

The Austin Group has asked if you would mind repeating the tests to see
if all versions of make support leading '.', '-', and digits as a macro
name.  (The POSIX standard currently doesn't forbid leading digits or
periods, but the thought was that there might be implementations that
require alphabetic or underscore as the first character, and if so, we
ought to fix the wording of the standard to call out that point at the
same time it allows dash).

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]