From 1ba956d18dff5e11f3fca908ca05e041fdf4c911 Mon Sep 17 00:00:00 2001 From: Daniel Schwen Date: Sat, 16 Apr 2022 17:29:04 -0600 Subject: [PATCH] better build/install --- Makefile | 10 +++++++--- README.md | 2 +- jzip.js | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) delete mode 120000 jzip.js diff --git a/Makefile b/Makefile index 6488c21..c438758 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,14 @@ CODE_DIR = src .PHONY: all -all: +all: src/jzip.js + +src/jzip.js: $(MAKE) -C $(CODE_DIR) -f emscripten.mak - ln -sf $(CODE_DIR)/jzip.js . + +install: src/jzip.js + mkdir -p site + cp -a src/jzip.wasm src/jzip.js jzip.html jzip.css storage.html storage.css storage.js map.html map.js data site clean: $(MAKE) -C $(CODE_DIR) -f emscripten.mak clean - diff --git a/README.md b/README.md index 23b5030..37adb5b 100644 --- a/README.md +++ b/README.md @@ -92,4 +92,4 @@ echo "LLVM_ROOT='$(pwd)/clang/3.2_64bit/bin/'" >> ~/.emscripten source ./emsdk_env.sh ``` -Now jszip sould build with `make`. +Now jszip sould build with `make`, and `make install` will copy all required files into the `site` directory. diff --git a/jzip.js b/jzip.js deleted file mode 120000 index f9fb3af..0000000 --- a/jzip.js +++ /dev/null @@ -1 +0,0 @@ -src/jzip.js \ No newline at end of file