Fix protos compilation failure for the first time.
Change-Id: I07db682ef7d200c3f70e55a952b9366cc09af148
diff --git a/protos/Makefile b/protos/Makefile
index 7f2c78c..153eec5 100644
--- a/protos/Makefile
+++ b/protos/Makefile
@@ -50,13 +50,10 @@
fi;
get_openolt_proto:
- if [ ! -e "voltha_protos" ]; then \
- mkdir voltha_protos; \
- fi;\
if [ ! -e "voltha_protos/openolt.proto" ]; then \
wget -O voltha_protos/openolt.proto https://raw.githubusercontent.com/opencord/voltha-protos/$(OPENOLT_PROTO_VER)/protos/voltha_protos/openolt.proto; \
fi; \
- if [ ! -e "tech_profile.proto" ]; then \
+ if [ ! -e "voltha_protos/tech_profile.proto" ]; then \
wget -O voltha_protos/tech_profile.proto https://raw.githubusercontent.com/opencord/voltha-protos/$(OPENOLT_PROTO_VER)/protos/voltha_protos/tech_profile.proto; \
fi;
@@ -69,7 +66,7 @@
$(PROTOC) --proto_path=. -I./googleapis -I./ --cpp_out=. $<
clean:
- rm *.a && cd voltha_protos/ && rm -f *.o *.pb.cc *.pb.h
+ rm -f *.a && cd voltha_protos/ && rm -f *.o *.pb.cc *.pb.h
distclean: clean
rm -rf googleapis