From 3a59749f2c0603872109a85c44234dd744d059cc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 12 Jul 2017 17:05:34 -0400 Subject: better way of finding stack built executable --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd2ac44..d2cd567 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ PREFIX=/usr build: Build/SysConfig.hs $(BUILDER) build $(BUILDEROPTIONS) if [ "$(BUILDER)" = stack ]; then \ - ln -sf $$(find .stack-work/ -name git-repair -type f | grep build/git-annex/git-repair | tail -n 1) git-repair; \ + ln -sf $$(stack path --dist-dir)/build/git-annex/git-repair git-repair; \ else \ ln -sf dist/build/git-repair/git-repair git-repair; \ fi -- cgit v1.2.3