diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,3 @@ -resolver = $(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts) -packages = $(shell ls -dQm hsm-*) client_dir = hsm-web/Client build: @@ -12,7 +10,11 @@ clean: update: cd $(client_dir) && npm update - yq -i '.resolver="$(resolver)" | .packages=[$(packages)]' stack.yaml + 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 |
