aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2019-09-03 21:01:53 +0200
committerJoris2019-09-03 21:04:40 +0200
commit5cedcecd6ae31e2485dcab2ddd74c74a4779545d (patch)
treebb54b8f1bbf1f5baaf94c28e4443fb17321d5fc7 /Makefile
parent8d14cb80170a8a15a0ced13bc7fe5cd16b908974 (diff)
downloadad-listener-5cedcecd6ae31e2485dcab2ddd74c74a4779545d.tar.gz
ad-listener-5cedcecd6ae31e2485dcab2ddd74c74a4779545d.tar.bz2
ad-listener-5cedcecd6ae31e2485dcab2ddd74c74a4779545d.zip
Make LBC to work
Use request headers to simulate a normal browser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 9 insertions, 12 deletions
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"