clean makefile. fix test target.
-PROTOC:=protoc --plugin=./protoc-gen-gogo -Ivendor -I$(GOPATH)/src
+PKG = github.com/loomnetwork/loom-plugin
+PROTOC = protoc --plugin=./protoc-gen-gogo -Ivendor -I$(GOPATH)/src
-.PHONY: clean test deps proto
+.PHONY: all clean test deps proto
all: proto
protoc-gen-gogo:
go build github.com/gogo/protobuf/protoc-gen-gogo
-types/types.pb.go: protoc-gen-gogo types/types.proto
+types/types.pb.go: types/types.proto protoc-gen-gogo
$(PROTOC) --gogo_out=\
plugins=grpc,Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types:$(GOPATH)/src \
-github.com/loomnetwork/loom-plugin/types/types.proto
+$(PKG)/$<
proto: types/types.pb.go
test: proto
- go test github.com/loomnetwork/loom/...
+ go test $(PKG)/...
deps:
go get \
