summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.nested.GNU
blob: 756a545258a2625cfd36c639b8d7e2db9519b56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#----------------------------------------------------------------------------
#       $Id$
#
#       Nested directory targets makefile definitions
#----------------------------------------------------------------------------

ifeq ($(MAKEFILE),)
  MAKEFILE = Makefile
endif # ! MAKEFILE

$(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) -f $(MAKEFILE) -C $$dir $(@:.nested=) $(ACE_NESTED_COMMAND); \
        done
  endif # ! Windows
endif # DIRS