aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ce383e982a2e98b4656f0ba54ecf96ed5f6129dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
client_dir = hsm-web/Client

build:
	cd $(client_dir) && npm run build
	stack build

clean:
	cd $(client_dir) && rm -rf dist
	stack clean --full

update:
	cd $(client_dir) && npm update
	yq -i '.resolver="$(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts)" | .packages=[$(shell ls -dQm hsm-*)]' stack.yaml

deploy:
	rsync -rv --mkpath --delete $(shell find .stack-work -type d -name bin) hsmouse:~/.local/
	rsync -rv --mkpath --delete $(client_dir)/dist/ hsmouse:~/Client/dist/

watch:
	cd $(client_dir) && npm run serve