mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Use a single line for bash loop in make clean
This commit is contained in:
parent
fb9ea992ea
commit
17f37583fc
7
Makefile
7
Makefile
@ -46,12 +46,7 @@ install: $(APP)
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
clean:
|
clean:
|
||||||
@for COMP in $(COMPONENT_DIRS)
|
@for COMP in $(COMPONENT_DIRS); do if [ -e $$COMP/Makefile ]; then make -C $$COMP clean; fi; done
|
||||||
do
|
|
||||||
if [[ -e $$COMP/Makefile ]]; then
|
|
||||||
make -C $$COMP clean
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
rm -f $(APP)
|
rm -f $(APP)
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
|
Loading…
Reference in New Issue
Block a user