From 010cbd6d4bbe7e1e87141c9133f9f8b6d97c9d17 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 6 Nov 2025 14:18:13 -0600 Subject: [PATCH] Add an install target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 16b13c2..602a553 100644 --- a/Makefile +++ b/Makefile @@ -61,3 +61,11 @@ clean: # this, I guess. full-clean: clean cargo clean + +# Installation goal. It's meant to be a helper utility for moving the built +# output into the web root. Only supports the "bundle-able" mode. +install: web + install -dm0755 $(DESTDIR) + install -m0644 out/asteroids.js $(DESTDIR)/ + install -m0644 out/asteroids_bg.wasm $(DESTDIR)/ + install -m0644 out/asteroids.html $(DESTDIR)/