VOL-793: Align with Luca's mkdebian changes
Change-Id: Id1d53a7d80e28cdad090ef51a6e6cf0fc37f3c7c
diff --git a/Makefile b/Makefile
index d4b2153..b1f76ee 100644
--- a/Makefile
+++ b/Makefile
@@ -221,11 +221,12 @@
ln -sf $(shell ldconfig -p | grep libgrpc++_reflection.so.1 | tr ' ' '\n' | grep /) $(BUILD_DIR)/libgrpc++_reflection.so.1
deb:
- rm *.deb
- cp build/*.tar.gz mkdebian/debian/release_asfvolt16.tar.gz
- cp build/openolt mkdebian/debian
- cp build/libgrpc++_reflection.so.1 mkdebian/debian
- cp /usr/local/lib/libgrpc.so.6 mkdebian/debian
+ rm -f *.deb
+ cp $(BUILD_DIR)/*.tar.gz mkdebian/debian/release_asfvolt16.tar.gz
+ cp $(BUILD_DIR)/openolt mkdebian/debian
+ cp $(BUILD_DIR)/libgrpc.so.6 mkdebian/debian
+ cp $(BUILD_DIR)/libgrpc++.so.1 mkdebian/debian
+ cp $(BUILD_DIR)/libgrpc++_reflection.so.1 mkdebian/debian
cd mkdebian && ./build_asfvolt16_deb.sh
mv *.deb $(BUILD_DIR)/openolt.deb