Skip to content

Commit 1b0a0f8

Browse files
felipecgitster
authored andcommitted
build: trivial simplification
SCRIPT_PYTHON_GEN is '$(patsubst %.py,%,$(SCRIPT_PYTHON))', so replace '$(patsubst %.py,%,$(SCRIPT_PYTHON))' with it Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent edca415 commit 1b0a0f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,8 +1796,8 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
17961796
endif # NO_PERL
17971797

17981798
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
18011801
$(QUIET_GEN)$(RM) $@ $@+ && \
18021802
INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C git_remote_helpers -s \
18031803
--no-print-directory prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' \
@@ -1809,7 +1809,7 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
18091809
chmod +x $@+ && \
18101810
mv $@+ $@
18111811
else # NO_PYTHON
1812-
$(patsubst %.py,%,$(SCRIPT_PYTHON)): % : unimplemented.sh
1812+
$(SCRIPT_PYTHON_GEN): % : unimplemented.sh
18131813
$(QUIET_GEN)$(RM) $@ $@+ && \
18141814
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
18151815
-e 's|@@REASON@@|NO_PYTHON=$(NO_PYTHON)|g' \

0 commit comments

Comments
 (0)