Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: [PATCH] mingw: disable Python

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:59

Erik Faye-Lund [off-list ref] writes:
quoted
On Fri, 8 Jan 2010, Johannes Sixt wrote:
quoted
Erik Faye-Lund schrieb:
quoted
Python is not commonly installed on Windows machines, so
we should disable it there by default.
--- a/Makefile
+++ b/Makefile
@@ -1027,6 +1027,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
+   NO_PYTHON = YesPlease
I'm worried that with this solution it is impossible to re-enable Python
in config.mak (how do you undefine a Makefile variable?);
quoted
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.

-- >8 -- cut here and try it for yourself -- >8 --
#!/bin/sh

rm -f config.mk

cat >Makefile <<\EOF
# The default is...
all::
FROTZ = NITFOL
-include config.mk
ifdef FROTZ
all::
	echo FROTZ is $(FROTZ)
else
all::
	echo FROTZ is not defined
endif
EOF

make
# says "NITFOL"

echo "FROTZ =" >config.mk
make
# says "not defined"

exit
-- 8< --
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help