add BUILDERCOMMONOPTIONS
Needed because stack path needs to be passed the modified stack.yaml to use as well.
This commit is contained in:
parent
654981f3f0
commit
6ba6c6b539
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -21,15 +21,17 @@ build: $(all)
|
||||||
tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs
|
tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs
|
||||||
if [ "$(BUILDER)" = ./Setup ]; then ghc --make Setup; fi
|
if [ "$(BUILDER)" = ./Setup ]; then ghc --make Setup; fi
|
||||||
if [ "$(BUILDER)" != stack ]; then \
|
if [ "$(BUILDER)" != stack ]; then \
|
||||||
$(BUILDER) configure --ghc-options="$(shell Build/collect-ghc-options.sh)"; \
|
$(BUILDER) configure $(BUILDERCOMMONOPTIONS) --ghc-options="$(shell Build/collect-ghc-options.sh)"; \
|
||||||
|
else \
|
||||||
|
$(BUILDER) setup $(BUILDERCOMMONOPTIONS); \
|
||||||
fi
|
fi
|
||||||
mkdir -p tmp
|
mkdir -p tmp
|
||||||
touch tmp/configure-stamp
|
touch tmp/configure-stamp
|
||||||
|
|
||||||
git-annex: tmp/configure-stamp
|
git-annex: tmp/configure-stamp
|
||||||
$(BUILDER) build $(BUILDEROPTIONS)
|
$(BUILDER) build $(BUILDERCOMMONOPTIONS) $(BUILDEROPTIONS)
|
||||||
if [ "$(BUILDER)" = stack ]; then \
|
if [ "$(BUILDER)" = stack ]; then \
|
||||||
ln -sf $$(stack path --dist-dir)/build/git-annex/git-annex git-annex; \
|
ln -sf $$(stack path $(BUILDERCOMMONOPTIONS) --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…
Add table
Add a link
Reference in a new issue