summaryrefslogtreecommitdiff
path: root/Makefile
blob: d3a4c6f676cc2e2e5eb6557fa2485fd99ebb4e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
wasm-serve:
	go run github.com/hajimehoshi/wasmserve@latest .

target-wasm: html/index.html
	mkdir -p out
	env GOOS=js GOARCH=wasm go build -o out/main.wasm .
	cp html/index.html out/
	cp /usr/lib/go/misc/wasm/wasm_exec.js out/

clean:
	rm -rf out
	rm -rf go.sum