-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 864 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 864 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
43
# Copyright (c) 2015 Taylor Fausak <taylor@fausak.me>
#
# See COPYING.Haskeleton.md for the licence covering this file.
.PHONY: all bench build clean configure haddock hpc install repl run test
all: install configure build haddock test hpc bench
bench:
cabal bench --jobs
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-benchmarks --enable-tests
haddock:
cabal haddock --hyperlink-source
# dist/doc/html/phec/index.html
hpc:
hpc markup --destdir=tmp dist/hpc/tix/tests/tests.tix
# tmp/hpc_index.html
install:
cabal sandbox init
cabal install --enable-benchmarks --enable-tests --jobs --only-dependencies --reorder-goals
repl:
cabal repl lib:phec
run:
cabal run --jobs phec
test:
cabal test --jobs
cabal check