1
0
mirror of https://github.com/Luzifer/wasm-openssl.git synced 2024-09-19 07:52:58 +00:00
wasm-openssl/Makefile
Knut Ahlers d469b667c7
Initial test
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-17 16:48:41 +02:00

9 lines
238 B
Makefile

default: build wasm_exec.js
build:
GOOS=js GOARCH=wasm go build -o main.wasm main.go
gzip -c main.wasm > main.wasm.gz
wasm_exec.js:
curl -sSfLo wasm_exec.js "https://raw.githubusercontent.com/golang/go/go1.11/misc/wasm/wasm_exec.js"