12 lines
205 B
Makefile
12 lines
205 B
Makefile
|
|
default: assets/json.wasm
|
|
|
|
assets/json.wasm: cmd/wasm/main.go
|
|
GOOS=js GOARCH=wasm go build -o $@ $<
|
|
|
|
run: server
|
|
./server
|
|
|
|
server: cmd/server/main.go assets/json.wasm
|
|
go build -o server ./cmd/server/
|
|
|