From 1be36b60f158b55e8d594e2b605928a9a71a432f Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 1 Jul 2016 03:56:52 -0400 Subject: Makefile: drop extra dependencies for test helpers A few test-helpers have Makefile dependencies on specific object files. But since these files are part of libgit.a (which all of the helpers link against), the inclusion is simply redundant. These were once necessary, but became redundant due to 5c5ba73 (Makefile: Use generic rule to build test programs, 2007-05-31), which added the $(GITLIBS) dependency (but didn't prune the extra dependency lines). Later commits then cargo-culted the practice (e.g., b4285c7). Note that we _do_ need to leave the dependencies on the svn library, as that is not part of the usual link command. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- Makefile | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 69d32bfe31..7c7142531a 100644 --- a/Makefile +++ b/Makefile @@ -2231,16 +2231,8 @@ perf: all .PHONY: test perf -t/helper/test-ctype$X: ctype.o - -t/helper/test-date$X: date.o ctype.o - -t/helper/test-delta$X: diff-delta.o patch-delta.o - t/helper/test-line-buffer$X: vcs-svn/lib.a -t/helper/test-parse-options$X: parse-options.o parse-options-cb.o - t/helper/test-svn-fe$X: vcs-svn/lib.a .PRECIOUS: $(TEST_OBJS) -- cgit v1.2.3 From 4df7c8a0375803b952bad31ac29578cfd56a2ac1 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 1 Jul 2016 03:59:44 -0400 Subject: Makefile: use VCSSVN_LIB to refer to svn library We have an abstracted variable; let's use it consistently. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7c7142531a..cc90c62bcd 100644 --- a/Makefile +++ b/Makefile @@ -2231,9 +2231,9 @@ perf: all .PHONY: test perf -t/helper/test-line-buffer$X: vcs-svn/lib.a +t/helper/test-line-buffer$X: $(VCSSVN_LIB) -t/helper/test-svn-fe$X: vcs-svn/lib.a +t/helper/test-svn-fe$X: $(VCSSVN_LIB) .PRECIOUS: $(TEST_OBJS) -- cgit v1.2.3