summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.nested.GNU
blob: 16636a25a254e0b0e8ecc50e6f6817be06fe19fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#----------------------------------------------------------------------------
#       $Id$
#
#       Nested directory targets makefile definitions
#----------------------------------------------------------------------------

$(TARGETS_NESTED):
ifneq ($(DIRS),)
ifeq (Windows,$(findstring Windows,$(OS)))
	@cmd /c "FOR /D %i IN ($(DIRS)) DO $(MAKE) -C %i $(@:.nested=)"
else  # ! Windows
	@for dir in $(DIRS); do $(MAKE) -C $$dir $(@:.nested=); done
endif # ! Windows
endif # DIRS