Skip to content

Commit

Permalink
better build/install
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Apr 16, 2022
1 parent 6f68d67 commit 1ba956d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 0 additions & 1 deletion jzip.js

This file was deleted.

0 comments on commit 1ba956d

Please sign in to comment.