From: Michael Stapelberg Date: Sun, 31 Jul 2011 21:01:16 +0000 (+0200) Subject: makefile: use $SUBDIRS for clean/distclean X-Git-Tag: 4.0~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49cf7ff2d7e4d6df6dcdf5a85f9dafe156826540;p=i3%2Fi3 makefile: use $SUBDIRS for clean/distclean --- diff --git a/Makefile b/Makefile index 06063c01..7a904320 100644 --- a/Makefile +++ b/Makefile @@ -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