* config/dos/dir.cf
* config/win/dir.cf
* config/linux/dir.cf
* config/os2/dir.cf
* config/wce/dir.cf
* DIR_LIST -> DIRS_OS
* DIR_MAKE -> MK_OS
33 lines
531 B
CFEngine3
33 lines
531 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(PM),) # Only traverse directories if not compiling a specific module
|
|
|
|
ifeq ($(DIRS),) # Empty directory list
|
|
|
|
DIR_RULE = @echo Done
|
|
|
|
else
|
|
|
|
ifeq ($(SHLVL),) # non-bash
|
|
|
|
MK_OS = $(subst /,\,$(MK))
|
|
DIRS_OS = $(subst /,\,$(DIRS))
|
|
DIR_RULE = $(COMSPEC) /C for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
|
|
|
|
else # bash
|
|
|
|
DIR_RULE =\
|
|
@for d in $(DIRS); do \
|
|
if [ -d $$d ]; then \
|
|
$(MAKE) -C $$d $@; \
|
|
fi \
|
|
done
|
|
|
|
endif # ! non-bash
|
|
|
|
endif # ! Empty directory list
|
|
|
|
endif # ! compiling a specific program module
|