diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-07-12 17:03:45 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-07-12 17:03:45 -0400 |
commit | 628ebfe1e5e2c098b6daccb7b9b439dccadacfd5 (patch) | |
tree | affdcc863e1273ecf7db87e0ce6b2bf257be8eee | |
parent | 6ae3f0c25bbde16e59e76a2487e49a9cace56e58 (diff) | |
download | debug-me-628ebfe1e5e2c098b6daccb7b9b439dccadacfd5.tar.gz |
better way of finding stack built executable
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ debug-me: $(BUILDER) build $(BUILDEROPTIONS); \ fi if [ "$(BUILDER)" = stack ]; then \ - ln -sf $$(find .stack-work/ -name debug-me -type f | grep build/debug-me/debug-me | tail -n 1) debug-me; \ + ln -sf $$(stack path --dist-dir)/build/debug-me/debug-me debug-me; \ else \ ln -sf dist/build/debug-me/debug-me debug-me; \ fi |