aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 33b5b20bbcf94ce58ae9903ea5c828613b3acc6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: build

# Dev commands

start:
	@nix-shell --command "tmuxinator local"

stop:
	@nix-shell --command "tmuxinator stop ad-listener"

# Other commands

clean:
	@cabal new-clean > /dev/null

watch: build
	@nodemon --watch src --delay 0.2 -e hs,conf --exec 'clear && make build-and-launch'

build-and-launch:
	@(pkill ad-listener || true) && (nix-shell -p zlib --command "cabal new-run ad-listener" || true)

build:
	@nix-shell -p zlib --command "cabal new-build"

repl:
	@cabal new-repl

test:
	@nix-shell -p zlib --command "cabal new-test"