mcstatus/Makefile

34 lines
429 B
Makefile
Raw Permalink Normal View History

APP=mcstatus
2022-06-22 03:09:59 +00:00
PREFIX=/usr/local
run: build
./$(APP)
2022-06-22 03:09:59 +00:00
build:
go build
doc:
godoc -http=:6090 -index
2022-06-22 03:09:59 +00:00
install:
install -m755 -- $(APP) $(PREFIX)/bin/
debs:
go get ./...
update-debs:
go get -u ./...
fmt:
gofmt -l -s .
clean:
go clean
proto:
2022-06-22 03:09:59 +00:00
protoc \
--proto_path=/usr/local/include/google/protobuf \
--proto_path=proto/ \
--go_out=$(GOPATH)/src proto/*.proto
2022-06-22 03:09:59 +00:00
.PHONY: run doc build debs update-debs fmt clean proto