-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 860 Bytes
/
Makefile
File metadata and controls
42 lines (28 loc) · 860 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
package = neon
stack_yaml = STACK_YAML="stack.yaml"
stack = $(stack_yaml) stack
build:
$(stack) build --fast $(package):lib
release:
$(stack) build
dirty:
$(stack) build --ghc-options=-fforce-recomp $(package)
profile:
$(stack) --work-dir .stack-work-profiling --profile build --fast
install:
$(stack) install --fast
ghci:
$(stack) repl $(package):lib --no-build --no-load --ghci-options='-j6 +RTS -A128m'
test:
$(stack) build --test --fast $(package)
test-ghci:
$(stack) ghci $(package):test:$(package)-tests --ghci-options='-j6 +RTS -A128m'
bench:
$(stack) build --fast --bench $(package)
dev:
$(stack) exec -- ghcid -c "stack ghci $(package):lib --test" # --main-is $(package):neon"
live:
$(stack) exec -- yesod devel
setup:
stack install ghcid && stack install yesod-bin
.PHONY : build dirty run install ghci test test-ghci watch