initial commit
This commit is contained in:
24
apps/node-agent/Makefile
Normal file
24
apps/node-agent/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
MODULE := github.com/hexahost/gamecloud/node-agent
|
||||
BINARY := hexahost-node-agent
|
||||
VERSION ?= 0.1.0-phase0
|
||||
|
||||
.PHONY: build test lint fmt clean run
|
||||
|
||||
build:
|
||||
go build -ldflags "-X main.version=$(VERSION)" -o bin/$(BINARY) ./cmd/agent
|
||||
|
||||
test:
|
||||
go test ./... -count=1 -race
|
||||
|
||||
lint:
|
||||
go vet ./...
|
||||
go test ./... -run=^$$ -count=0
|
||||
|
||||
fmt:
|
||||
gofmt -w .
|
||||
|
||||
clean:
|
||||
rm -rf bin/
|
||||
|
||||
run: build
|
||||
./bin/$(BINARY)
|
||||
Reference in New Issue
Block a user