aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e4b352cf2796b958aefde2e23c38c32bcb13536f (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
all: build

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

stop:
	@tmux kill-session -t jardin

clean:
	@stack exec jardin clean > /dev/null 2>&1 || true
	@stack clean > /dev/null

install:
	@stack setup

.PHONY: build
build:
	@stack build
	@stack exec jardin build

watch:
	@nodemon --watch src -e hs --exec 'make watch-command --silent'

watch-command:
	@(killall jardin || :) && sleep 1 && stack build && stack exec jardin watch