Skip to content

Commit

Permalink
build: cleanup using $<
Browse files Browse the repository at this point in the history
No need to list the first prerequisite. No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 26, 2013
1 parent 654f23f commit f530aa9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1705,9 +1705,9 @@ version.sp version.s version.o: EXTRA_CPPFLAGS = \

$(BUILT_INS): git$X
$(QUIET_BUILT_IN)$(RM) $@ && \
ln git$X $@ 2>/dev/null || \
ln -s git$X $@ 2>/dev/null || \
cp git$X $@
ln $< $@ 2>/dev/null || \
ln -s $< $@ 2>/dev/null || \
cp $< $@

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

Expand Down Expand Up @@ -1772,7 +1772,7 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl GIT-VERSION-FILE
-e ' x' \
-e '}' \
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
$@.perl >$@+ && \
$< >$@+ && \
chmod +x $@+ && \
mv $@+ $@

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

0 comments on commit f530aa9

Please sign in to comment.