summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-07-12 17:06:42 -0400
committerJoey Hess <joeyh@joeyh.name>2017-07-12 17:06:42 -0400
commitd4cfaf5348c4f70c46e90733f4f266c6e410ba19 (patch)
tree748aada6c3ea99d47ce2a1fa5bf81767cf53dd0d
parent5f5db1e390512cf68a5667863d5205f7d3e99a60 (diff)
downloadkeysafe-d4cfaf5348c4f70c46e90733f4f266c6e410ba19.tar.gz
better way of finding stack built executable
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 58def76..8ac9a1f 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ keysafe:
$(BUILDER) build $(BUILDEROPTIONS); \
fi
if [ "$(BUILDER)" = stack ]; then \
- ln -sf $$(find .stack-work/ -name keysafe -type f | grep build/keysafe/keysafe | tail -n 1) keysafe; \
+ ln -sf $$(stack path --dist-dir)/build/keysafe/keysafe keysafe; \
else \
ln -sf dist/build/keysafe/keysafe keysafe; \
fi