Fix make recipe for wasm_exec.js file
Add GO_VERSION to the command that copies the wasm_exec.js file so it will look in the correct folder when using an alternate version of Go.
This commit is contained in:
parent
15f790ae56
commit
a840f80f9a
|
@ -18,7 +18,7 @@ MovieNight: *.go common/*.go
|
||||||
GOOS=${GOOS} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight${EXT} $(TAGS)
|
GOOS=${GOOS} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight${EXT} $(TAGS)
|
||||||
|
|
||||||
static/js/wasm_exec.js:
|
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
|
static/main.wasm: static/js/wasm_exec.js wasm/*.go common/*.go
|
||||||
GOOS=js GOARCH=wasm go$(GO_VERSION) build -o $@ $(TAGS) wasm/*.go
|
GOOS=js GOARCH=wasm go$(GO_VERSION) build -o $@ $(TAGS) wasm/*.go
|
||||||
|
|
Loading…
Reference in New Issue