Makefile: have python scripts depend on NO_PYTHON setting
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>
Jonathan Nieder committed
Nov 18, 2014 at 10:43 UTC
ca2051d6e3a7cf1d562d9dd1e465766d30093b0b
1 file changed
+3
Makefile
+3
@@ -1861,6 +1861,9 @@ $(SCRIPT_PERL_GEN) git-instaweb: % : unimplemented.sh
1861
mv $@+ $@
1862
endif # NO_PERL
1863
1864
+# This makes sure we depend on the NO_PYTHON setting itself.
1865
+$(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS
1866
+
1867
ifndef NO_PYTHON
1868
$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
1869
$(SCRIPT_PYTHON_GEN): % : %.py