forked from freizl/hoauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (35 loc) · 821 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
40
41
42
43
44
45
46
47
48
49
50
51
default: build
clean:
cabal v2-clean
create-keys:
test -e example/Keys.hs || cp example/Keys.hs.sample example/Keys.hs
build:
cabal v2-build --flag=test
## ghcid --command="cabal v2-repl demo-server"
## use `cabal v2-repl demo-server` is really handy
## :l example/main.hs
watch:
find src example -name '*.hs' | entr -s 'make build'
build-demo:
cabal v2-build --flag=test demo-server
start-demo:
cabal v2-exec --flag=test demo-server
rebuild: clean build
stylish:
find src example -name '*.hs' | xargs stylish-haskell -i
hlint:
hlint . --report
doc: build
cabal v2-haddock
dist: build
cabal v2-sdist
## Maybe use hpack?
cabal2nix:
cabal2nix -ftest . > hoauth2.nix
####################
### CI
####################
ci-build: create-keys
nix-build
ci-lint:
nix-shell --command 'make hlint'