better way of finding stack built executable
This commit is contained in:
parent
b294c00e16
commit
d2b69c04e3
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -27,7 +27,7 @@ tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs
|
||||||
git-annex: tmp/configure-stamp
|
git-annex: tmp/configure-stamp
|
||||||
$(BUILDER) build $(BUILDEROPTIONS)
|
$(BUILDER) build $(BUILDEROPTIONS)
|
||||||
if [ "$(BUILDER)" = stack ]; then \
|
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 \
|
else \
|
||||||
ln -sf dist/build/git-annex/git-annex git-annex; \
|
ln -sf dist/build/git-annex/git-annex git-annex; \
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue