From 0b901178dfc617eb5241e1cef7cef6157a68c787 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 28 Dec 2015 16:45:33 -0400 Subject: improve binary finding --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 386029829..15e88a131 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs git-annex: Build/SysConfig.hs $(BUILDER) build -j1 if [ "$(BUILDER)" = stack ]; then \ - ln -sf $(shell find .stack-work/ -name git-annex -type f | grep build/git-annex/git-annex) git-annex; \ + ln -sf $(shell find .stack-work/ -name git-annex -type f | grep build/git-annex/git-annex | tail -n 1) git-annex; \ else \ ln -sf dist/build/git-annex/git-annex git-annex; \ fi -- cgit v1.2.3