-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (49 loc) · 1.31 KB
/
makefile
File metadata and controls
63 lines (49 loc) · 1.31 KB
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
54
55
56
57
58
59
60
61
62
63
OPTIMIZATION=-O0
build:
cabal build all -j --ghc-options $(OPTIMIZATION)
.PHONY: test
test:
cabal test -j --ghc-options $(OPTIMIZATION)
test-emulator:
nix-build nix/emulator.nix -o result-emulator
./result-emulator/bin/test-lifecycle
test-simulator:
nix-build nix/simulator.nix -o result-simulator
./result-simulator/bin/test-lifecycle-ios
haddock:
cabal haddock all
haddock-hackage:
cabal new-haddock all --haddock-for-hackage --haddock-option=--hyperlinked-source
echo "the hackage ui doesn't accept the default format, use command instead"
cabal upload -d --publish ./dist-newstyle/*-docs.tar.gz
ghcid: clean
ghcid \
--test="main" \
--command="ghci" \
test/Test
ghcid-app: clean
ghcid \
--main="main" \
--command="ghci" \
app/Main
ghci:
ghci app/exe
etags:
hasktags -e ./src
clean:
rm -fR dist dist-*
find . -name '*.hi' -type f -delete
find . -name '*.o' -type f -delete
find . -name '*.dyn_hi' -type f -delete
find . -name '*.dyn_o' -type f -delete
find . -name 'autogen*' -type f -delete
.PHONY: test
sdist:
nix-build . # ad-hoc proof it builds
cabal sdist
run:
cabal run exe --ghc-options $(OPTIMIZATION) -- \
brittany_:
$(shell set -x; for i in `fd hs`; do hlint --refactor --refactor-options=-i $$i; brittany --write-mode=inplace $$i; done)
hoogle:
hoogle server --local -p 8080