* config/bsd/gcc.cf
* config/wce/msvcarm.cf
* config/wce/mingwarm.cf
* config/wce/poccarm.cf
* config/darwin/gcc.cf
* config/hpux/gcc.cf
* config/dos/watcom.cf
* config/dos/djgpp.cf
* config/win/watcom.cf
* config/win/icc.cf
* config/win/cygwin.cf
* config/win/msvc.cf
* config/win/xcc.cf
* config/win/mingw.cf
* config/win/pocc.cf
* config/win/bcc.cf
* config/linux/watcom.cf
* config/linux/gcc.cf
* config/linux/icc.cf
* config/linux/sunpro.cf
* config/instsh.cf
* config/dirsh.cf
* config/os2/watcom.cf
* config/os2/gcc.cf
* config/sunos/gcc.cf
* config/sunos/sunpro.cf
% Removed spaces before $(foreach) parameters. A space is
automatically added by GNU Make, so it's not needed. May
save a little bytes here and there and command look more
tidy (source looks a little bit clumsier though).
56 lines
846 B
CFEngine3
56 lines
846 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifneq ($(HB_SHELL),sh)
|
|
|
|
MK_OS = $(subst /,\,$(MK))
|
|
DIRS_OS = $(subst /,\,$(DIRS))
|
|
|
|
endif
|
|
|
|
ifeq ($(DIRS),) # Empty directory list
|
|
|
|
DIR_RULE := @echo "! Done"
|
|
|
|
else
|
|
|
|
ifeq ($(HB_SHELL),sh)
|
|
|
|
DIR_RULE =\
|
|
@for d in $(DIRS); do \
|
|
if [ -d "$$d" ]; then \
|
|
$(MAKE) -C $$d $@; \
|
|
fi \
|
|
done
|
|
|
|
endif
|
|
|
|
ifeq ($(HB_SHELL),nt)
|
|
|
|
DIR_RULE = for %%d in ($(DIRS_OS)) do $(MK_OS) -C %%d $@
|
|
|
|
endif
|
|
|
|
ifeq ($(HB_SHELL),os2)
|
|
|
|
DIR_RULE = for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
|
|
|
|
endif
|
|
|
|
ifeq ($(HB_SHELL),dos)
|
|
|
|
# We have to use script to overcome the DOS limit of max 128 characters
|
|
# NOTE: The empty line directly before 'endef' HAVE TO exist!
|
|
# It causes that every commands will be separated by LF
|
|
define dir_mk
|
|
$(MK_OS) -C $(file) $@
|
|
|
|
endef
|
|
|
|
DIR_RULE = $(foreach file,$(DIRS_OS),$(dir_mk))
|
|
|
|
endif
|
|
|
|
endif # ! Empty directory list
|