aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index f8eeb77..33b5b20 100644
--- a/Makefile
+++ b/Makefile
@@ -2,31 +2,28 @@ all: build
# Dev commands
-dev-start:
+start:
@nix-shell --command "tmuxinator local"
-dev-stop:
+stop:
@nix-shell --command "tmuxinator stop ad-listener"
# Other commands
clean:
- @cabal clean > /dev/null
+ @cabal new-clean > /dev/null
-install:
- @cabal2nix --shell . > ad-listener.nix
-
-watch:
- @make install && nix-shell ad-listener.nix --run "nodemon --watch src --delay 0.2 -e hs,conf --exec 'clear && make build-and-launch'"
+watch: build
+ @nodemon --watch src --delay 0.2 -e hs,conf --exec 'clear && make build-and-launch'
build-and-launch:
- @(pkill ad-listener || true) && (cabal run || true)
+ @(pkill ad-listener || true) && (nix-shell -p zlib --command "cabal new-run ad-listener" || true)
build:
- @make install && nix-shell ad-listener.nix --run "cabal build || true"
+ @nix-shell -p zlib --command "cabal new-build"
repl:
- @make install && nix-shell ad-listener.nix --run "cabal repl"
+ @cabal new-repl
test:
- @make install && nix-shell ad-listener.nix --run "cabal test"
+ @nix-shell -p zlib --command "cabal new-test"