-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.repos:
[[ -d vendor ]] || mkdir vendor
[[ -d vendor/distributed-process ]] || \
{ cd vendor; git clone -b be https://github.com/BirdseyeSoftware/distributed-process; }
[[ -d vendor/distributed-process-platform ]] || \
{ cd vendor; git clone -b be https://github.com/BirdseyeSoftware/distributed-process-platform; }
[[ -d vendor/network-transport ]] || \
{ cd vendor; git clone -b development https://github.com/haskell-distributed/network-transport; }
[[ -d vendor/network-transport-inmemory ]] || \
{ cd vendor; git clone -b development https://github.com/haskell-distributed/network-transport-inmemory; }
touch .repos
.setup: .repos
cabal sandbox init
cabal sandbox add-source vendor/distributed-process
cabal sandbox add-source vendor/distributed-process-platform
cabal sandbox add-source vendor/network-transport
cabal sandbox add-source vendor/network-transport-inmemory
touch .setup
.installed: .setup dp-system-process.cabal
cabal install --enable-tests --only-dependencies
touch .installed
.PHONY: setup
setup: .installed
.PHONY: unsetup
unsetup:
cabal sandbox delete
rm .setup
.PHONY: test
test: setup
cabal test --show-details=always