VOL-1282 BBSim - Add reboot-related features
Change-Id: I9a1ce85eae18e42361956942aaf8d8fae0cc0802
diff --git a/Makefile b/Makefile
index 56bbcb2..2c3bf1e 100644
--- a/Makefile
+++ b/Makefile
@@ -21,22 +21,30 @@
go build -i -v -o $@
dep: protos/openolt.pb.go
- @go get -v -d ./...
+ go get -v -d ./...
protos/openolt.pb.go: openolt.proto
@protoc -I . \
-I${GOPATH}/src \
-I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:protos/ \
- openolt.proto
+ $<
test:
- @go test -v ./...
- @go test -v ./... -cover
+ go test -v ./...
+ go test -v ./... -cover
+
+fmt:
+ go fmt ./...
+
+vet:
+ go vet ./...
+
+lint:
+ gometalinter --vendor --exclude ../../golang.org --skip protos --sort path --sort line ./...
clean:
- @rm bbsim protos/openolt.pb.go
+ rm -f bbsim openolt/openolt.pb.go
docker:
- @docker build -t voltha/voltha-bbsim:${DOCKERTAG} .
-
+ docker build -t voltha/voltha-bbsim:${DOCKERTAG} .