-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
49 lines (36 loc) · 1.24 KB
/
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
OPTIMIZATION=-O0
build: update-cabal
cabal new-build all -j --ghc-options $(OPTIMIZATION)
file-watch: hpack
scripts/watch.sh
update-readme:
cp -f ./README.md bulmex/README.md
update-cabal: update-readme
hpack -f ./bulmex
EXTRA=""
enter:
nix-shell --cores 0 -j 8 $(EXTRA)
run: create-db
./dist-newstyle/build/x86_64-linux/ghc-8.4.3/backend-1.0.0.0/x/webservice/build/webservice/webservice
clean:
rm -f cabal.project.freeze # we use nix
rm -f .ghc.environment*
rm -fR dist dist-*
ghcid: clean
nix-shell --run "ghcid -s \"import Main\" -c \"make update-cabal && cabal new-repl \" -T \"main\" test:unit"
haddock:
cabal new-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
etags:
nix-shell --run "hasktags -e ./common/ ./frontend ./backend"
hpack:
nix-shell ./hpack-shell.nix --run "make update-cabal"
sdist: update-cabal haddock
cabal new-sdist all
brittany_:
$(shell set -x; for i in `fd hs`; do hlint --refactor --refactor-options=-i $$i; brittany --write-mode=inplace $$i; done)
brittany:
nix-shell ./travis-shell.nix --run "make brittany_"