diff --git a/make/Makefile.common b/make/Makefile.common index cef3133..c939903 100644 --- a/make/Makefile.common +++ b/make/Makefile.common @@ -18,7 +18,7 @@ MovieNight: *.go common/*.go GOOS=${GOOS} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight${EXT} $(TAGS) static/js/wasm_exec.js: - cp $$(go env GOROOT)/misc/wasm/wasm_exec.js $@ + cp $$(go$(GO_VERSION) env GOROOT)/misc/wasm/wasm_exec.js $@ static/main.wasm: static/js/wasm_exec.js wasm/*.go common/*.go GOOS=js GOARCH=wasm go$(GO_VERSION) build -o $@ $(TAGS) wasm/*.go