Toolbox/goMetrix/app.wasm/Makefile

23 lines
468 B
Makefile
Raw Permalink Normal View History

2023-05-03 09:06:13 +02:00
# Basic Go makefile
GOCMD=GOOS=js GOARCH=wasm go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
all: build transmit
build:
$(GOBUILD) -o app.wasm -v
dbg-build:
$(GOBUILD) -v -gcflags=all="-N -l" -tags debug
test:
$(GOTEST) -v ./...
clean:
$(GOCLEAN)
transmit:
scp -r app.wasm root@10.23.45.27:/srv/Data/ArchiumToolbox/Toolbox/static/wasm/
# scp -r app.wasm root@10.23.45.26:/srv/Data/ArchiumToolbox/Toolbox/static/wasm/