makefile: use $SUBDIRS for clean/distclean

This commit is contained in:
Michael Stapelberg 2011-07-31 23:01:16 +02:00
parent 8b526679ef
commit 74191652d4
1 changed files with 10 additions and 8 deletions

View File

@ -117,17 +117,19 @@ clean:
(which lcov >/dev/null && lcov -d . --zerocounters) || true
$(MAKE) -C docs clean
$(MAKE) -C man clean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg clean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-input clean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-nagbar clean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-config-wizard clean
for dir in $(SUBDIRS); do \
echo ""; \
echo "CLEAN $$dir"; \
$(MAKE) TOPDIR=$(TOPDIR) -C $$dir distclean; \
done
distclean: clean
rm -f i3
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg distclean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-input distclean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-nagbar distclean
$(MAKE) TOPDIR=$(TOPDIR) -C i3-config-wizard distclean
for dir in $(SUBDIRS); do \
echo ""; \
echo "DISTCLEAN $$dir"; \
$(MAKE) TOPDIR=$(TOPDIR) -C $$dir distclean; \
done
coverage:
rm -f /tmp/i3-coverage.info