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: @make install && nix-shell ad-listener.nix --run "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) build: @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"