mfer/Makefile

20 lines
292 B
Makefile

PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go
default: run
run: compile
./cmd/mfer/mfer
$(PROTOC_GEN_GO):
go get -u github.com/golang/protobuf/protoc-gen-go
compile: $(PROTOC_GEN_GO)
cd proto && go generate .
cd cmd/mfer && go build
clean:
rm -rfv proto/*.pb.go
fmt:
prettier -w .