-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 806 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 806 Bytes
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
40
41
42
.PHONY: all bench build clean configure haddock hpc install repl run test
all: install configure build haddock test hpc
build:
@cabal build --jobs
clean:
@cabal clean
if test -d .cabal-sandbox; then cabal sandbox delete; fi
if test -d .hpc; then rm -r .hpc; fi
configure:
@cabal configure --enable-tests --ghc-option=-static --disable-shared
haddock:
@cabal haddock --hyperlink-source
# dist/doc/html/access/index.html
hpc:
hpc markup --destdir=tmp dist/hpc/tix/tests/tests.tix
sandbox:
@cabal sandbox init
install: sandbox
@cabal install \
--jobs \
--only-dependencies \
--enable-tests \
--reorder-goals --max-backjumps=200 \
--force-reinstalls --shadow-installed-packages
repl:
@cabal repl lib:access
run:
@cabal run --jobs access
test:
@cabal test --jobs
@cabal check