aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 98ad691..1490609 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,32 @@
all: build
+# Dev commands
+
+dev-start:
+ @nix-shell --command "tmuxinator local"
+
+dev-stop:
+ @nix-shell --command "tmuxinator stop ad-listener"
+
+# Other commands
+
clean:
@cabal clean > /dev/null
+install:
+ @cabal2nix --shell . > ad-listener.nix
+
watch:
- @nodemon -e hs,conf --exec 'make build-and-launch'
+ @make install && nix-shell ad-listener.nix --run "nodemon -e hs,conf --exec 'clear && make build-and-launch'"
build-and-launch:
- @(pkill leboncoin-listener || true) && (cabal run || true)
+ @(pkill ad-listener || true) && (cabal run || true)
-.PHONY: build
build:
- @cabal build || true
+ @make install && nix-shell ad-listener.nix --run "cabal build || true"
+
+repl:
+ @make install && nix-shell ad-listener.nix --run "cabal repl"
+
+test:
+ @make install && nix-shell ad-listener.nix --run "cabal test"