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 <jan@janware.com>
This commit is contained in:
parent
fe5756d761
commit
d31768cbef
1 changed files with 3 additions and 4 deletions
|
|
@ -270,12 +270,11 @@ pkg-%: $(filter-out $(UNAVAILABLE_TARGETS),pull.done)
|
||||||
|
|
||||||
# --- generic cleanup targets
|
# --- generic cleanup targets
|
||||||
|
|
||||||
clean-dirs:
|
|
||||||
echo $(sort $(subst /,,$(dir $(wildcard */*.done)))) | xargs -r $(JW_PKG_PY_BUILD) clean
|
|
||||||
|
|
||||||
clean-all-dirs:
|
clean-all-dirs:
|
||||||
|
$(JW_PKG_PY_BUILD) clean $(sort $(subst /,,$(dir $(wildcard */*.done))) $(PROJECTS))
|
||||||
|
|
||||||
|
clean-dirs:
|
||||||
$(JW_PKG_PY_BUILD) clean $(PROJECTS)
|
$(JW_PKG_PY_BUILD) clean $(PROJECTS)
|
||||||
make clean-dirs
|
|
||||||
|
|
||||||
purge: $(SSH_WRAPPER_SH)
|
purge: $(SSH_WRAPPER_SH)
|
||||||
ifneq ($(PURGE_SH),/bin/bash purge-not-found)
|
ifneq ($(PURGE_SH),/bin/bash purge-not-found)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue