Skip to content

Commit ca2051d

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 64c07db commit ca2051d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,6 +1861,9 @@ $(SCRIPT_PERL_GEN) git-instaweb: % : unimplemented.sh
18611861
mv $@+ $@
18621862
endif # NO_PERL
18631863

1864+
# This makes sure we depend on the NO_PYTHON setting itself.
1865+
$(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS
1866+
18641867
ifndef NO_PYTHON
18651868
$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
18661869
$(SCRIPT_PYTHON_GEN): % : %.py

0 commit comments

Comments
 (0)