forked from simonmar/monad-par
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 839 Bytes
/
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
# This is just here as a reminder of what to run, or for people whose
# fingers are in the habit of typing "make".
# Run "make install-all" in the parent directory before using the below:
all: install
install:
./generate_cabal.sh
cabal install
# This can't reuse the vanilla "cabal install" version above because
# it passes a bunch of different flags.
test:
./generate_cabal.sh
ghc -threaded --make benchmark.hs -o benchmark.run
SHORTRUN=1 THREADS="1" ./benchmark.run
validate:
./generate_cabal.sh
ghc -threaded --make benchmark.hs -o benchmark.run
# SHORTRUN=1 THREADS="1" ./benchmark.run
cabal-dev install -s ../cabal-dev/
clean:
cabal clean || echo
rm -rf bin
# TODO: A cheap way to run everything for a quick test without having to
# rely on the benchmark script.
# runall:
# ./bin/parfib.exe
# ./bin/mandel.exe