aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 43f592ebd453318808f1ed2a0237069602d95b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: build

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

install:
	@stack setup

.PHONY: build
build:
	@stack build
	@stack exec cooking build

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

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