From 3348869ae1d81b30c9dd6981fe6ecb4f17cd0e89 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 4 May 2021 09:49:50 -0400 Subject: [PATCH] Makefile: git clean properly preserve project files (.project, .cproject, etc) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 847d81c9e0..79e67c2aff 100644 --- a/Makefile +++ b/Makefile @@ -469,8 +469,8 @@ validate_module_configs: clean: @rm -rf "$(SRC_DIR)"/build - @git clean -dfX -e ".project" -e ".cproject" -e ".idea" -e ".settings" -e ".vscode" - @git submodule foreach git clean -dfX -e ".project" -e ".cproject" -e ".idea" -e ".settings" -e ".vscode" + @git clean -df -e ".project" -e ".cproject" -e ".idea" -e ".project" -e ".settings" -e ".vscode" + @git submodule foreach git clean -dfX submodulesclean: @git submodule foreach --quiet --recursive git clean -ff -x -d @@ -488,7 +488,7 @@ gazeboclean: distclean: gazeboclean @git submodule deinit -f . - @git clean -ff -x -d -e ".project" -e ".cproject" -e ".idea" -e ".settings" -e ".vscode" + @git clean -ff -x -d -e ".cproject" -e ".idea" -e ".project" -e ".settings" -e ".vscode" # Help / Error # --------------------------------------------------------------------