On Tue, Nov 26, 2002 at 01:48:03PM +0100, Abigail wrote: > PERLPREFIX=${PREFIX:-/usr} > SITEPREFIX=${PREFIX:-/top} > > > I've used that long before I heard about bash. > It's also part of the POSIX 1003.1-2001 standard.
Perl make understands it, but I can't get that to work in GNU make. POSIX or not, that kills it. :( GNU make claims to conform to "section 6.2 of IEEE Standard 1003.2-1992 (POSIX.2)", not 2001. Is it in the 1992 standard? Not that it'll make much difference, but at least we can glare disapprovingly at the GNU folks. $ cat Makefile PREFIX=foo SITEPREFIX=${PREFIX:-/usr} prefixes: @echo PREFIX = $(PREFIX) @echo SITEPREFIX = $(SITEPREFIX) $ pmake prefixes Reading /usr/local/share/perl/5.6.1/Make.pm Reading /home/schwern/tmp/Makefile PREFIX = foo SITEPREFIX = /usr $ make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for powerpc-unknown-linux-gnu <snip> $ make prefixes PREFIX = foo SITEPREFIX = -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One You see, in this world there's two kinds of people. Those with loaded guns, and those who dig. Dig. -- Blondie, "The Good, The Bad And The Ugly"