diff options
author | Joris | 2018-06-17 23:24:47 +0200 |
---|---|---|
committer | Joris | 2018-06-18 11:13:55 +0200 |
commit | 0a4d3c8f12dc5797a919a00b6bcaf759947687cc (patch) | |
tree | bcb89781e22c2314bf0c064ebb37cb7f8a362f5c /Makefile | |
parent | e2a5c7c5c596d057b6fa9c08a8204ce1429cfdc4 (diff) |
Add ouest france parser
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -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" |