Files
harbour-core/harbour/config/dos/dir.cf
Viktor Szakats ee75928e56 2009-07-11 18:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/dos/dir.cf
  * config/win/global.cf
  * config/win/dir.cf
  * config/wce/dir.cf
    * Some more sync. Now os2/win/wce dir.cfs are the same, 
      and they're almost the same as the dos one.
2009-07-11 16:09:14 +00:00

42 lines
791 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
# 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
$(DIR_MAKE) -C $(file) $@
endef
DIR_LIST = $(subst /,\,$(DIRS))
DIR_MAKE = $(subst /,\,$(MK))
DIR_RULE = $(foreach file, $(DIR_LIST), $(dir_mk))
else # bash
DIR_LIST = $(subst \,/,$(DIRS))
DIR_RULE =\
@for d in $(DIR_LIST); do \
if [ -d $$d ]; then \
$(MAKE) -C $$d $@; \
fi \
done
endif # ! non-bash
endif # ! Empty directory list
endif # ! compiling a specific program module