* config/instsh.cf
* config/dirsh.cf
* config/globsh.cf
% Grouped non-bash (batch) initializations to reduce redundancy.
* Changed 'md' command to 'mkdir' in OS/2 and DOS, just to be
in sync, mkdir is available in all shells.
+ Added links to good multiplatform batch docs.
* utils/hbmk2/hbmk2.prg
+ Added ability to start -gui targets on OS/2.
54 lines
851 B
CFEngine3
54 lines
851 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
|
|
|
|
else ifeq ($(HB_SHELL),nt)
|
|
|
|
DIR_RULE =\
|
|
$(CMDPREF)for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
|
|
|
|
else ifeq ($(HB_SHELL),os2)
|
|
|
|
DIR_RULE =\
|
|
$(CMDPREF)for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
|
|
|
|
else 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
|