Skip to content

Commit f530aa9

Browse files
felipecgitster
authored andcommitted
build: cleanup using $<
No need to list the first prerequisite. No functional changes. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 654f23f commit f530aa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,9 +1705,9 @@ version.sp version.s version.o: EXTRA_CPPFLAGS = \
17051705

17061706
$(BUILT_INS): git$X
17071707
$(QUIET_BUILT_IN)$(RM) $@ && \
1708-
ln git$X $@ 2>/dev/null || \
1709-
ln -s git$X $@ 2>/dev/null || \
1710-
cp git$X $@
1708+
ln $< $@ 2>/dev/null || \
1709+
ln -s $< $@ 2>/dev/null || \
1710+
cp $< $@
17111711

17121712
common-cmds.h: ./generate-cmdlist.sh command-list.txt
17131713

@@ -1772,7 +1772,7 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl GIT-VERSION-FILE
17721772
-e ' x' \
17731773
-e '}' \
17741774
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
1775-
$@.perl >$@+ && \
1775+
$< >$@+ && \
17761776
chmod +x $@+ && \
17771777
mv $@+ $@
17781778

@@ -1805,7 +1805,7 @@ $(SCRIPT_PYTHON_GEN): % : %.py
18051805
sed -e '1s|#!.*python|#!$(PYTHON_PATH_SQ)|' \
18061806
-e 's|\(os\.getenv("GITPYTHONLIB"\)[^)]*)|\1,"@@INSTLIBDIR@@")|' \
18071807
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
1808-
$@.py >$@+ && \
1808+
$< >$@+ && \
18091809
chmod +x $@+ && \
18101810
mv $@+ $@
18111811
else # NO_PYTHON

0 commit comments

Comments
 (0)