Add Makefile build that uses --copy-compiler-tool, along with a make icu-macos-fix for icu4c problems

This commit is contained in:
Christian Kjaer Laustsen 2018-02-21 12:04:15 +01:00
parent 725db6af3c
commit 0e93593e27

View File

@ -13,7 +13,27 @@ build:
.PHONY: build
hie-8.2.2:
stack --stack-yaml=stack.yaml install \
&& cp ~/.local/bin/hie ~/.local/bin/hie-8.2.2 \
stack --stack-yaml=stack.yaml install \
&& cp ~/.local/bin/hie ~/.local/bin/hie-8.2.2 \
&& cp ~/.local/bin/hie-8.2.2 ~/.local/bin/hie-8.2
.PHONY: hie-8.2.2
build-copy-compiler-tool:
stack --stack-yaml=stack-8.0.2.yaml build --copy-compiler-tool \
&& stack --stack-yaml=stack-8.2.1.yaml build --copy-compiler-tool \
&& stack --stack-yaml=stack.yaml build --copy-compiler-tool
.PHONY: build-copy-compiler-tool
icu-macos-fix:
brew install icu4c \
&& stack --stack-yaml=stack-8.0.2.yaml build text-icu \
--extra-lib-dirs=/usr/local/opt/icu4c/lib \
--extra-include-dirs=/usr/local/opt/icu4c/include \
&& stack --stack-yaml=stack-8.2.1.yaml build text-icu \
--extra-lib-dirs=/usr/local/opt/icu4c/lib \
--extra-include-dirs=/usr/local/opt/icu4c/include \
&& stack --stack-yaml=stack.yaml build text-icu \
--extra-lib-dirs=/usr/local/opt/icu4c/lib \
--extra-include-dirs=/usr/local/opt/icu4c/include
.PHONY: icu-macos-fix