dirs.mk: Attempt to clear up SUBDIRS_TO_ITERATE / SUBDIRS confusion

SUBDIRS_TO_ITERATE and SUBDIRS are not used consistently. This commit aims at
making that clearer without breaking anything

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-10 13:58:53 +00:00
commit 7c6e888932

View file

@ -66,7 +66,7 @@ endif
# explicit duplication of pattern-rule is needed, otherwise .PHONY: dirs-all.done won't match # explicit duplication of pattern-rule is needed, otherwise .PHONY: dirs-all.done won't match
dirs-all.done: dirs-all.done:
touch dirs-started-all.done touch dirs-started-all.done
set -e; for d in $(SUBDIRS) ; do make -wC $$d $*; done set -e; for d in $(SUBDIRS_TO_ITERATE) ; do make -wC $$d $*; done
ifneq ($(DONT_CHECK_PREREQ_DONE),true) ifneq ($(DONT_CHECK_PREREQ_DONE),true)
touch $@ touch $@
endif endif
@ -77,7 +77,7 @@ endif
dirs-%.done: dirs-%.done:
touch dirs-started-$*.done touch dirs-started-$*.done
set -e; for d in $(SUBDIRS) ; do make -wC $$d $*; done set -e; for d in $(SUBDIRS_TO_ITERATE) ; do make -wC $$d $*; done
ifneq ($(DONT_CHECK_PREREQ_DONE),true) ifneq ($(DONT_CHECK_PREREQ_DONE),true)
touch $@ touch $@
endif endif
@ -95,11 +95,11 @@ dirs-install.done: dirs-all.done
endif endif
dirs.clean: dirs.clean:
set -e; for d in $(call reverse,$(SUBDIRS)) ; do make -wC $$d clean; done set -e; for d in $(call reverse,$(SUBDIRS_TO_ITERATE)) ; do make -wC $$d clean; done
$(RM) -rf $(TEXTCLEAN) $(CLEAN) *.done *~ .*.swp *.tmp core *.rep dirs-*.done $(RM) -rf $(TEXTCLEAN) $(CLEAN) *.done *~ .*.swp *.tmp core *.rep dirs-*.done
dirs.distclean: dirs.distclean:
set -e; for d in $(call reverse,$(SUBDIRS)) ; do make -wC $$d distclean; done set -e; for d in $(call reverse,$(SUBDIRS_TO_ITERATE)) ; do make -wC $$d distclean; done
$(RM) -rf $(DISTCLEAN) $(RM) -rf $(DISTCLEAN)
endif # SUBDIRS_TO_ITERATE endif # SUBDIRS_TO_ITERATE