VOL-793: Makefile debian target for openolt driver
Change-Id: I9d71af17a4adc1d988dd85c76f1af1738c084b86
diff --git a/Makefile b/Makefile
index 2b11fef..d4b2153 100644
--- a/Makefile
+++ b/Makefile
@@ -220,12 +220,22 @@
ln -sf $(shell ldconfig -p | grep libgrpc++.so.1 | tr ' ' '\n' | grep /) $(BUILD_DIR)/libgrpc++.so.1
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
+ cd mkdebian && ./build_asfvolt16_deb.sh
+ mv *.deb $(BUILD_DIR)/openolt.deb
+
src/%.o: %.cpp
$(CXX) -MMD -c $< -o $@
clean: clean-protos
rm -f $(OBJS) $(DEPS)
rm -f $(BUILD_DIR)/libgrpc.so.6 $(BUILD_DIR)/libgrpc++.so.1 $(BUILD_DIR)/libgrpc++_reflection.so.1
+ rm -f $(BUILD_DIR)/*.deb
distclean:
rm -rf $(BUILD_DIR)