Re: [email protected]/lnx-bbc--gcc-nuv--3.3--patch-23

Adam Sampson <[email protected]> Fri, 20 Aug 2004 09:37:52 +0100
Newsgroups gmane.linux.bbc.devel
Organization Things I did not know at first I learned by doing twice.
Message-ID <[email protected]>
Nick Moffitt <[email protected]> writes:

> +usr/bin = $(prefix)$(bindir)/
> 	How is that kosher GNU make?  Slashes in variable names?

It's legitimate but discouraged. From the GNU make manual:

  A variable name may be any sequence of characters not containing
  `:', `#', `=', or leading or trailing whitespace.  However, variable
  names containing characters other than letters, numbers, and
  underscores should be avoided, as they may be given special meanings
  in the future, and with some shells they cannot be passed through
  the environment to a sub-`make'.

procps has a sensibly-non-recursive make setup, so the sub-make
restriction isn't a problem. It'd be nice if procps could use the
GNU-standard variable names, but it needs to differentiate between
several bin directories, so that'd probably end up being about as
messy.

-- 
Adam Sampson <[email protected]>                        <http://offog.org/>