34 lines
429 B
Makefile
34 lines
429 B
Makefile
APP=mcstatus
|
|
PREFIX=/usr/local
|
|
|
|
run: build
|
|
./$(APP)
|
|
|
|
build:
|
|
go build
|
|
|
|
doc:
|
|
godoc -http=:6090 -index
|
|
|
|
install:
|
|
install -m755 -- $(APP) $(PREFIX)/bin/
|
|
|
|
debs:
|
|
go get ./...
|
|
|
|
update-debs:
|
|
go get -u ./...
|
|
|
|
fmt:
|
|
gofmt -l -s .
|
|
|
|
clean:
|
|
go clean
|
|
|
|
proto:
|
|
protoc \
|
|
--proto_path=/usr/local/include/google/protobuf \
|
|
--proto_path=proto/ \
|
|
--go_out=$(GOPATH)/src proto/*.proto
|
|
|
|
.PHONY: run doc build debs update-debs fmt clean proto |