Skip to content

Commit

Permalink
Get GOROOT from go env tool
Browse files Browse the repository at this point in the history
  • Loading branch information
josephburnett committed Feb 15, 2025
1 parent 4147f1d commit f79e55c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pack-web : build-web
go run web/pack/main.go

.PHONY : build-web
build-web : check-goroot
cp $$GOROOT/misc/wasm/wasm_exec.js web/assets/
build-web :
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js web/assets/
GOOS=js GOARCH=wasm go build -o web/assets/jd.wasm ./web/ui/main.go

.PHONY : serve
Expand Down Expand Up @@ -104,12 +104,6 @@ ifndef JD_PREVIOUS_VERSION
$(error Set JD_PREVIOUS_VERSION for release notes)
endif

.PHONY : check-goroot
check-goroot:
ifndef GOROOT
$(error Set GOROOT in order to file wasm_exec.js)
endif

.PHONY : find-issues
find-issues :
-staticcheck ./...
Expand Down

0 comments on commit f79e55c

Please sign in to comment.