From: Ed Warnicke Date: Tue, 22 Mar 2016 17:52:22 +0000 (-0500) Subject: Fix distclean to correctly handle Centos X-Git-Tag: v16.06-rc1~215 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=46040a513bc32b0f4e9993fbd7f0fc4bc4e1c42c;p=vpp.git Fix distclean to correctly handle Centos Change-Id: I3f930306e9f384011687d2ce88052639df0d966b Signed-off-by: Ed Warnicke --- diff --git a/build-root/Makefile b/build-root/Makefile index 34d6c9dd28e..a7d89434f08 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -1175,8 +1175,9 @@ distclean: rm -rf $(MU_BUILD_ROOT_DIR)/$(IMAGES_PREFIX)* rm -rf $(TOOL_INSTALL_DIR) rm -rf $(MU_BUILD_ROOT_DIR)/*.deb + rm -rf $(MU_BUILD_ROOT_DIR)/*.rpm rm -rf $(MU_BUILD_ROOT_DIR)/*.changes - (cd $(MU_BUILD_ROOT_DIR)/deb/;debian/rules clean) + if [ -e /usr/bin/dh ];then (cd $(MU_BUILD_ROOT_DIR)/deb/;debian/rules clean); fi rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/*.install rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/*.dkms rm -f $(MU_BUILD_ROOT_DIR)/deb/debian/changelog