Skip to content

Commit 21117bf

Browse files
felipecgitster
authored andcommitted
Makefile: use $^ to avoid listing prerequisites on the command line
There's no need to list again the prerequisites. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7ded055 commit 21117bf

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
@@ -2043,13 +2043,13 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS
20432043
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
20442044

20452045
$(LIB_FILE): $(LIB_OBJS)
2046-
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
2046+
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^
20472047

20482048
$(XDIFF_LIB): $(XDIFF_OBJS)
2049-
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(XDIFF_OBJS)
2049+
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^
20502050

20512051
$(VCSSVN_LIB): $(VCSSVN_OBJS)
2052-
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(VCSSVN_OBJS)
2052+
$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^
20532053

20542054
export DEFAULT_EDITOR DEFAULT_PAGER
20552055

0 commit comments

Comments
 (0)