Files
harbour-core/harbour/config/dirsh.cf
Viktor Szakats c01ec57fe7 2009-07-16 17:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
  * config/instsh.cf
  * config/dirsh.cf
  * config/globsh.cf
    * Restored compatibility with pre-3.81 GNU Make versions.
      (some user feedback features are now disabled for older versions)
2009-07-16 15:20:36 +00:00

60 lines
857 B
CFEngine3

#
# $Id$
#
ifneq ($(HB_SHELL),bash)
MK_OS = $(subst /,\,$(MK))
DIRS_OS = $(subst /,\,$(DIRS))
endif
ifeq ($(DIRS),) # Empty directory list
DIR_RULE =\
@echo Done
else
ifeq ($(HB_SHELL),bash)
DIR_RULE =\
@for d in $(DIRS); do \
if [ -d $$d ]; then \
$(MAKE) -C $$d $@; \
fi \
done
endif
ifeq ($(HB_SHELL),nt)
DIR_RULE =\
$(CMDPREF)for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
endif
ifeq ($(HB_SHELL),os2)
DIR_RULE =\
$(CMDPREF)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