build: trivial simplification
SCRIPT_PYTHON_GEN is '$(patsubst %.py,%,$(SCRIPT_PYTHON))', so replace '$(patsubst %.py,%,$(SCRIPT_PYTHON))' with it Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
May 24, 2013 at 21:41 UTC
1b0a0f8446090c424ec16e222c15207e3211c6e3
1 file changed
+3
-3
Makefile
+3
-3
@@ -1796,8 +1796,8 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
1796
endif # NO_PERL
1797
1798
ifndef NO_PYTHON
1799
-$(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
1800
-$(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
1799
+$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
1800
+$(SCRIPT_PYTHON_GEN): % : %.py
1801
$(QUIET_GEN)$(RM) $@ $@+ && \
1802
INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C git_remote_helpers -s \
1803
--no-print-directory prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' \
@@ -1809,7 +1809,7 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
1809
chmod +x $@+ && \
1810
mv $@+ $@
1811
else # NO_PYTHON
1812
-$(patsubst %.py,%,$(SCRIPT_PYTHON)): % : unimplemented.sh
1812
+$(SCRIPT_PYTHON_GEN): % : unimplemented.sh
1813
$(QUIET_GEN)$(RM) $@ $@+ && \
1814
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
1815
-e 's|@@REASON@@|NO_PYTHON=$(NO_PYTHON)|g' \