23 lines
468 B
Makefile
23 lines
468 B
Makefile
|
# 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/
|
||
|
|