From ddceb88a4ff3e850f20e8e64958b693d7b202655 Mon Sep 17 00:00:00 2001 From: nicolassanchez02 <98576999+nicolassanchez02@users.noreply.github.com> Date: Fri, 29 May 2026 03:38:25 -0500 Subject: [PATCH] buildsystem: drop source __pycache__ dirs in mrproper make mrproper left every __pycache__/ in the source tree behind: the clean targets only run against the out-of-source build dir, but running python from the repo (tests, codegen, the converter) scatters bytecode caches through openage/ and buildsystem/. cleaninsourcebuild now removes those too, outside .bin, matching the other in-source cleanups already there. Closes #442. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ad8ad7adf0..ffaaf178fa 100644 --- a/Makefile +++ b/Makefile @@ -104,6 +104,7 @@ cleaninsourcebuild: @find . -not -path "./.bin/*" -type f -name CMakeCache.txt -print -delete @find . -not -path "./.bin/*" -type f -name Makefile -not -path "./Makefile" -print -delete @find . -not -path "./.bin/*" -type d -name CMakeFiles -print -exec rm -r {} + + @find . -not -path "./.bin/*" -type d -name __pycache__ -print -exec rm -r {} + .PHONY: cleanbuilddirs cleanbuilddirs: cleaninsourcebuild