diff options
author | Joris | 2019-09-03 21:01:53 +0200 |
---|---|---|
committer | Joris | 2019-09-03 21:04:40 +0200 |
commit | 5cedcecd6ae31e2485dcab2ddd74c74a4779545d (patch) | |
tree | bb54b8f1bbf1f5baaf94c28e4443fb17321d5fc7 /Makefile | |
parent | 8d14cb80170a8a15a0ced13bc7fe5cd16b908974 (diff) |
Make LBC to work
Use request headers to simulate a normal browser
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -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" |