Makefile: have python scripts depend on NO_PYTHON setting
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 18 Nov 2014 18:43:47 +0000 (10:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2014 19:15:50 +0000 (11:15 -0800)
Like the perl scripts, python scripts need a dependency to ensure they
are rebuilt when switching between the "dummy" versions that run
without Python and the real thing.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
index dcaf82462003ff5959a7683ba2b7898615a808ff..e3cab521541998e8e682d48793038ae14efc50d3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1861,6 +1861,9 @@ $(SCRIPT_PERL_GEN) git-instaweb: % : unimplemented.sh
        mv $@+ $@
 endif # NO_PERL
 
+# This makes sure we depend on the NO_PYTHON setting itself.
+$(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS
+
 ifndef NO_PYTHON
 $(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
 $(SCRIPT_PYTHON_GEN): % : %.py