[nycbug-talk] Undefining a variable set in make.conf

Scott Robbins scottro
Tue Aug 30 20:42:38 EDT 2005

Hash: SHA1

This question came up on bsdforums, and none of the obvious answers seem
to work. I'm sure I'm missing something in either ports or make's man
pages, but I can't figure it out.

Here's the situation. The OP has WITH_RUBY defined in /etc/make.conf

Now, he wants to build /usr/ports/devel/subversion.  Its makefile has
an if defined WITH_RUBY line.  

Yes, he can comment it out in make.conf, or write a script to switch
make.confs and all that.  However, he was wondering, (and so am I now)
how to undefine it on the command line.  Doing make WITH_RUBY=no or
false or 0 didn't work, nor did -DWITH_RUBY=no. 

There's no option in the Makefile for WITHOUT_RUBY. 

The OP on forums used that one for an example.  It seems there has to be
an easy way to do this on the command line, but I am not getting it in
make's man page. 

Googling brought me no joy either, probably bad search terms, but now
the question is annoying me. 

So, I'd be grateful if someone gives me the answer.  

Hopefully yours,

- -- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Riley: When I'm around you Buffy I find myself needing to know 
the plural of apocalypse. 

Version: GnuPG v1.4.2 (FreeBSD)


More information about the talk mailing list