aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-07-12 17:04:51 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-07-12 17:04:51 -0400
commit99fd58d7b27258b90c533598314450d790a80892 (patch)
treea352df31dc93a474c3cab91b05375732055750c6 /Makefile
parent2596f24a996ec9d16ce125add1794c23af828b43 (diff)
better way of finding stack built executable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7d5c70148..be76bae22 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