From 5cedcecd6ae31e2485dcab2ddd74c74a4779545d Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 3 Sep 2019 21:01:53 +0200 Subject: Make LBC to work Use request headers to simulate a normal browser --- Makefile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'Makefile') 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" -- cgit v1.2.3