Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 09:09:17 -0700
From:      Faried Nawaz <fn@hungry.com>
To:        hackers@freebsd.org
Subject:   patch to add make -U
Message-ID:  <20030729160917.GA51401@nilpotent.org>

next in thread | raw e-mail | index | archive | help
While working around a port issue (ports/55013), I discovered that
make couldn't unset variables using make -U.  I've written a small
patch that adds -U functionality, but I haven't tested it extensively.

http://web.nilpotent.org/tmp/make.diff.bz2  (~ 3KB unpacked)
against yesterday's -CURRENT code.

A simple Makefile I used to test it:

-- cut here --
FOO = bar

.ifdef FOO
SAY = y
.else
SAY = n
.endif

all:
	echo $(SAY)
-- cut here -- 

Try "make -U FOO".



Faried.
-- 
The Great GNU has arrived, infidels, behold his wrath !
"If a MOO runs on a port no one accesses, does it run?"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030729160917.GA51401>