aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7ccb5def97e862ffe889670af436ed14866b2dce (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:
	@unset STACK_IN_NIX_SHELL && stack exec personalPage clean > /dev/null 2>&1 || true
	@unset STACK_IN_NIX_SHELL && stack clean > /dev/null

install:
	@unset STACK_IN_NIX_SHELL && stack setup

build:
	@unset STACK_IN_NIX_SHELL && stack build
	@unset STACK_IN_NIX_SHELL && stack exec personalPage build

deploy:
	@make build
	@unset STACK_IN_NIX_SHELL && stack exec personalPage deploy

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

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