From 5e542cef0bc3c989c614b8305e0558eed9a23a4e Mon Sep 17 00:00:00 2001 From: Bryan Strassner Date: Wed, 29 Aug 2018 08:00:51 -0500 Subject: [PATCH] [FIX] Update dangerous makefile clean command In the corner case that the tmp directory would not be created, the old form could attempt to delete much more than intended. This changes to more simply fail in the case of a missing tmp directory Change-Id: I3a4cd800e329cd477904d00f6dcb77bbbc2ff90b --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26548fd9..bc004a19 100644 --- a/Makefile +++ b/Makefile @@ -127,7 +127,7 @@ endif .PHONY: clean clean: - rm -rf $(BUILD_DIR)/* + rm -r $(BUILD_DIR) rm -rf build rm -rf docs/build cd $(BUILD_CTX)/shipyard_client; rm -rf build