aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 33b5b20..039a460 100644
--- a/Makefile
+++ b/Makefile
@@ -11,19 +11,22 @@ stop:
# Other commands
clean:
- @cabal new-clean > /dev/null
+ @stack clean > /dev/null
+
+install:
+ @stack setup
watch: build
@nodemon --watch src --delay 0.2 -e hs,conf --exec 'clear && make build-and-launch'
build-and-launch:
- @(pkill ad-listener || true) && (nix-shell -p zlib --command "cabal new-run ad-listener" || true)
+ @(pkill ad-listener || true) && (stack exec ad-listener || true)
build:
- @nix-shell -p zlib --command "cabal new-build"
+ @stack build
repl:
- @cabal new-repl
+ @stack repl
test:
- @nix-shell -p zlib --command "cabal new-test"
+ @stack test