From d2b69c04e3fa668b6d02b7e8f64baaeb39fa3cfb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 12 Jul 2017 17:04:51 -0400 Subject: [PATCH] better way of finding stack built executable --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d5c70148f..be76bae22d 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs git-annex: tmp/configure-stamp $(BUILDER) build $(BUILDEROPTIONS) if [ "$(BUILDER)" = stack ]; then \ - ln -sf $$(find .stack-work/ -name git-annex -type f | grep build/git-annex/git-annex | tail -n 1) git-annex; \ + ln -sf $$(stack path --dist-dir)/build/git-annex/git-annex git-annex; \ else \ ln -sf dist/build/git-annex/git-annex git-annex; \ fi