aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6a9d963..ce383e9 100644
--- a/Makefile
+++ b/Makefile
@@ -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