quorate/packages/grafana-rcon/Makefile

13 lines
302 B
Makefile

.PHONY: build test clean
build:
npm run build
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -o dist/rcon_linux_amd64 ./backend
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -o dist/rcon_linux_arm64 ./backend
test:
npm run check
go test -race ./backend
clean:
rm -rf dist