mfer/Makefile

20 lines
283 B
Makefile

PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go
default: run
run: compile
./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 .