Add Makefile

This commit is contained in:
Chandler Swift 2026-02-11 19:36:36 -06:00
parent 1e58dd5c6f
commit f9435c3a21
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 19 additions and 0 deletions

18
Makefile Normal file
View file

@ -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

View file

@ -5,5 +5,6 @@ in
pkgs.mkShellNoCC {
packages = with pkgs; [
nodejs
gnumake
];
}