mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 14:40:12 +08:00
Makefile: git clean properly preserve project files (.project, .cproject, etc)
This commit is contained in:
@@ -469,8 +469,8 @@ validate_module_configs:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf "$(SRC_DIR)"/build
|
@rm -rf "$(SRC_DIR)"/build
|
||||||
@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 -e ".project" -e ".cproject" -e ".idea" -e ".settings" -e ".vscode"
|
@git submodule foreach git clean -dfX
|
||||||
|
|
||||||
submodulesclean:
|
submodulesclean:
|
||||||
@git submodule foreach --quiet --recursive git clean -ff -x -d
|
@git submodule foreach --quiet --recursive git clean -ff -x -d
|
||||||
@@ -488,7 +488,7 @@ gazeboclean:
|
|||||||
|
|
||||||
distclean: gazeboclean
|
distclean: gazeboclean
|
||||||
@git submodule deinit -f .
|
@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
|
# Help / Error
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user