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 7049fc4299
Convert to be auto-build compliant
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-18 18:40:13 +02:00

12 lines
264 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"
publish:
bash golang.sh