forked from bitemyapp/fp-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (26 loc) · 764 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
34
35
36
37
38
39
package = course
stack_yaml = STACK_YAML="stack.yaml"
stack = $(stack_yaml) stack
build:
$(stack) build $(package)
build-dirty:
$(stack) build --ghc-options=-fforce-recomp $(package)
build-profile:
$(stack) --work-dir .stack-work-profiling --profile build
run:
$(stack) build --fast && $(stack) exec -- $(package)
install:
$(stack) install
ghci:
$(stack) ghci $(package):lib
test:
$(stack) test $(package)
test-ghci:
$(stack) exec ghci -- -isrc -itest test/Spec.hs
bench:
$(stack) bench $(package)
ghcid:
$(stack) exec -- ghcid -c "stack ghci $(package):lib --test --ghci-options='-fobject-code -fno-warn-unused-do-bind'"
dev-deps:
stack install ghcid
.PHONY : build build-dirty build-profile run install ghci test test-ghci ghcid dev-deps