From 39c4a5f7ad2a7cffe5227d20ed7485845911c905 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Tue, 10 Feb 2026 02:55:48 +0000 Subject: Adds deployment support --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2