blob: 14906092f463e478e4fbd1cdce2dbe5dd1980f2f (
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
30
31
32
|
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 -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"
|