diff options
author | Ed Warnicke <eaw@cisco.com> | 2016-03-22 12:52:22 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-03-25 20:37:40 +0000 |
commit | 46040a513bc32b0f4e9993fbd7f0fc4bc4e1c42c (patch) | |
tree | f20b1251314e8af312f5486f9e537a1896de7257 /build-root/Makefile | |
parent | c841eac7730c3e80fc14006481edb5d9221bf45c (diff) |
Fix distclean to correctly handle Centos
Change-Id: I3f930306e9f384011687d2ce88052639df0d966b
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'build-root/Makefile')
-rw-r--r-- | build-root/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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 |