2020-11-05 16:51:20 +00:00
|
|
|
APP=mcstatus
|
|
|
|
|
|
|
|
run: build
|
|
|
|
./$(APP)
|
|
|
|
|
|
|
|
doc:
|
|
|
|
godoc -http=:6090 -index
|
|
|
|
|
|
|
|
build:
|
|
|
|
go build
|
|
|
|
|
|
|
|
debs:
|
|
|
|
go get ./...
|
|
|
|
|
|
|
|
update-debs:
|
|
|
|
go get -u ./...
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
gofmt -l -s .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean
|
|
|
|
|
|
|
|
proto:
|
2022-06-22 03:05:10 +00:00
|
|
|
protoc \
|
|
|
|
--proto_path=/usr/local/include/google/protobuf \
|
|
|
|
--proto_path=protobuf/ \
|
|
|
|
--go_out=$(GOPATH)/src protobuf/*.proto
|
2020-11-05 16:51:20 +00:00
|
|
|
|
2020-12-15 21:13:50 +00:00
|
|
|
.PHONY: run doc build debs update-debs fmt proto
|