From f9435c3a210a5b2ace7b9a0b8ec906171de45057 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Wed, 11 Feb 2026 19:36:36 -0600 Subject: [PATCH] Add Makefile --- Makefile | 18 ++++++++++++++++++ shell.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..82f5c4d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.PHONY: build deploy clean start default + +default: start + +build: + npm run build + +deploy: build + scp -r dist kiosk: + +clean: + rm -rf dist + +start: deploy + # TODO: This doesn't kill weston nicely; I should handle that? Or background or something + ssh kiosk "pgrep -f 'python3 -m http.server' || python3 -m http.server --directory /home/chandler/dist 127.0.0.1:8000 &" + ssh kiosk "pkill -f 'weston --shell=kiosk-shell.so'" + ssh kiosk weston --shell=kiosk-shell.so -- firefox --kiosk localhost:8000 diff --git a/shell.nix b/shell.nix index 084bd66..9e2dbba 100644 --- a/shell.nix +++ b/shell.nix @@ -5,5 +5,6 @@ in pkgs.mkShellNoCC { packages = with pkgs; [ nodejs + gnumake ]; }