From fb7a33d81728db2f78e71ea729032b002aa18ade Mon Sep 17 00:00:00 2001 From: Zero <188656344+k5602@users.noreply.github.com> Date: Thu, 3 Sep 2026 20:57:14 +0300 Subject: [PATCH] chore(build): cover build dirs in gitignore and distclean Ignore build*/ so build_san and other out-of-source dirs share the same rule as build/. Extend distclean to remove in-source leftovers (cmake_install.cmake, CTestTestfile.cmake, compile_commands.json) from past in-source configures. --- .gitignore | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bc4e758..b8231ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build/ +build*/ *.o *.a *.so diff --git a/Makefile b/Makefile index a9c9527..407346b 100644 --- a/Makefile +++ b/Makefile @@ -86,6 +86,9 @@ distclean: clean @echo "Removing CMake cache and artifacts..." @find . -name "CMakeCache.txt" -delete @find . -name "CMakeFiles" -type d -exec rm -rf {} + 2>/dev/null || true + @find . -name "cmake_install.cmake" -delete + @find . -name "CTestTestfile.cmake" -delete + @find . -name "compile_commands.json" -delete @find . -name ".cmake" -type d -exec rm -rf {} + 2>/dev/null || true @find . -name "Testing" -type d -exec rm -rf {} + 2>/dev/null || true