mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
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:
parent
6fe23eb8c8
commit
7c6e888932
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue