client_dir = hsm-web/Client build: stack build client: cd $(client_dir) && npm run 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