-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (35 loc) · 855 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
EXE := ray
GHC_OPTIONS := --ghc-options='-ferror-spans -fhide-source-paths -fprof-auto' # -fprint-unicode-syntax
dev: all
ghcid --command="cabal new-repl $(GHC_OPTIONS)" | source-highlight -s haskell -f esc
repl:
cabal new-repl $(GHC_OPTIONS)
all:
cabal new-build $(GHC_OPTIONS) all
run:
cabal new-run $(EXE)
runp:
cabal new-run $(EXE) -- +RTS -p -s -l -hy -RTS
clean: cleanp
cabal new-clean
cleanp:
rm -f $(EXE).ps $(EXE).hp $(EXE).prof $(EXE).eventlog $(EXE).aux
check:
cabal new-check
test:
cabal new-test
docs:
cabal new-haddock
ps:
hp2ps -d -c $(EXE).hp
tags:
rm -f tags codex.tags
codex update --force
haskdogs --hasktags-args "-b"
prof:
cabal new-configure --enable-profiling
noprof:
cabal new-configure --disable-profiling
hoogle:
hoogle server --local
.PHONY: dev repl cleanp all run check test docs tags ps prof noprof hoogle