From: Johannes Sixt Date: Fri, 08 Jan 2010 13:52:47 GMT Subject: Re: [PATCH] mingw: disable Python Message-ID: <4B4738AF.9020101@viscovery.net> In-Reply-To: <7vpr5kpvmh.fsf@alter.siamese.dyndns.org> Junio C Hamano schrieb: > Erik Faye-Lund writes: >>> On Fri, 8 Jan 2010, Johannes Sixt wrote: >>>> (how do you undefine a Makefile variable?); >>> How about >>> >>> NO_PYTHON= >>> >>> in config.mak? >> That doesn't work for me, at least not out of the box. NO_PYTHON is >> still defined, it's just defined to an empty string. > > I think Dscho is right. "ifdef FOO" yields (and should yield) false if > FOO is set to empty. Indeed. Strange. It didn't work when I tested it a few hours ago, but no it works as you say. According to the docs, 'ifdef' actually does not test defined-ness, but emptyness. So, Erik's original version is fine: Acked-by: Johannes Sixt -- Hannes