-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
53 lines (34 loc) · 777 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
52
53
SRC=$(shell find src -name '*.hs')
all: init test docs package
init: stack.yaml
test:
stack test
docs:
stack haddock
package: test
hpack
stack sdist
upload: package
stack upload --pvp-bounds lower .
tags: configure ${SRC}
codex update
hlint:
hlint src specs
clean:
stack clean
codex cache clean
-rm -rf dist
distclean: clean
configure:
cabal configure --package-db=clear --package-db=global --package-db=`stack path --snapshot-pkg-db` --package-db=`stack path --local-pkg-db`
build:
stack build
ghcid:
ghcid --command="stack ghci"
watch:
stack test --file-watch
restart: distclean init build
rebuild: clean configure build
stack.yaml:
stack init --prefer-nightly
.PHONY: all init test clean distclean configure build rebuild hlint ghcid watch