From 0a4d3c8f12dc5797a919a00b6bcaf759947687cc Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Jun 2018 23:24:47 +0200 Subject: Add ouest france parser --- Makefile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'Makefile') 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" -- cgit v1.2.3