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

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

stop:
	@tmux kill-session -t personalPage

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

install:
	@stack setup

build:
	@stack build
	@stack exec personalPage build

deploy:
	@make build
	@stack exec personalPage deploy

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

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