From 211c2b3b1ed72d56ca95a3003238cb499463d56a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 30 Jan 2024 03:03:57 +0000 Subject: [PATCH] Add dependencies for emscripten page directory. --- pkg/emscripten/GNUmakefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkg/emscripten/GNUmakefile b/pkg/emscripten/GNUmakefile index c3cb071..46b4d44 100644 --- a/pkg/emscripten/GNUmakefile +++ b/pkg/emscripten/GNUmakefile @@ -1,13 +1,15 @@ +TOPLEVEL = ../.. DIST_FILES = error.png loading.gif sopwith.html +SOPWITH_JS = $(TOPLEVEL)/src/sopwith +SOPWITH_WASM = $(TOPLEVEL)/src/sopwith.wasm all: page -page: - mkdir $@ - cp $(DIST_FILES) $@/ - cp ../../src/sopwith $@/sopwith.js - cp ../../src/sopwith.wasm $@/ +page: $(SOPWITH_JS) $(SOPWITH_WASM) $(DIST_FILES) + mkdir -p $@ + cp $(DIST_FILES) $(SOPWITH_WASM) $@/ + cp $(SOPWITH_JS) $@/sopwith.js clean: - rm -rf staging + rm -rf page