Use a single line for bash loop in make clean

This commit is contained in:
Thomas Roehl 2022-03-11 13:41:13 +01:00
parent fb9ea992ea
commit 17f37583fc

View File

@ -46,12 +46,7 @@ install: $(APP)
.PHONY: clean
.ONESHELL:
clean:
@for COMP in $(COMPONENT_DIRS)
do
if [[ -e $$COMP/Makefile ]]; then
make -C $$COMP clean
fi
done
@for COMP in $(COMPONENT_DIRS); do if [ -e $$COMP/Makefile ]; then make -C $$COMP clean; fi; done
rm -f $(APP)
.PHONY: fmt