aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2018-06-17 23:24:47 +0200
committerJoris2018-06-18 11:13:55 +0200
commit0a4d3c8f12dc5797a919a00b6bcaf759947687cc (patch)
treebcb89781e22c2314bf0c064ebb37cb7f8a362f5c /Makefile
parente2a5c7c5c596d057b6fa9c08a8204ce1429cfdc4 (diff)
Add ouest france parser
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"