summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2014-11-18 10:43:47 -0800
committerJunio C Hamano <gitster@pobox.com>2014-11-18 11:15:50 -0800
commitca2051d6e3a7cf1d562d9dd1e465766d30093b0b (patch)
tree9fb4e4913f10b94fdf9cb780be1e7b818a92e5e2 /Makefile
parent64c07db9ad98fdeb43e739bdabd4cc423b10c272 (diff)
downloadgit-ca2051d6e3a7cf1d562d9dd1e465766d30093b0b.tar.gz
Makefile: have python scripts depend on NO_PYTHON settingjk/rebuild-perl-scripts-with-no-perl-seting-change
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dcaf824620..e3cab52154 100644
--- 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