From d31768cbefb8e3de938762146e4c6be18b5af81d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 18 Jun 2026 11:49:10 +0200 Subject: [PATCH] projects-dir.mk: Fix: clean-dirs does too much The clean-dirs target does not only clean the repos present in PROJECTS, but all repos it finds to be dirty, and clean-all-dirs does the opposite. I suppose that was an oversight, swap their recipes. Moreover, cleaning all directories goes about its business in an overly complicated and unecessarily time-consuming way, fix that, too. Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index dc616693..96d0a2ee 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -270,12 +270,11 @@ pkg-%: $(filter-out $(UNAVAILABLE_TARGETS),pull.done) # --- generic cleanup targets -clean-dirs: - echo $(sort $(subst /,,$(dir $(wildcard */*.done)))) | xargs -r $(JW_PKG_PY_BUILD) clean - clean-all-dirs: + $(JW_PKG_PY_BUILD) clean $(sort $(subst /,,$(dir $(wildcard */*.done))) $(PROJECTS)) + +clean-dirs: $(JW_PKG_PY_BUILD) clean $(PROJECTS) - make clean-dirs purge: $(SSH_WRAPPER_SH) ifneq ($(PURGE_SH),/bin/bash purge-not-found)