#
# $Id$
#

ifeq ($(PM),) # Only traverse directories if not compiling a specific module

ifeq ($(SHLVL),) # An OS/2 command shell

ifeq ($(DIRS),) # Empty directory list
DIR_RULE =\
	@echo Done
else
DIR_LIST = $(subst /,\,$(DIRS))
DIR_RULE =\
	CMD.EXE /c FOR %d IN ($(DIR_LIST)) DO $(MK) -C %d $@
endif

else  # bash

DIR_RULE =\
	@for d in $(DIRS); do \
		if [ -d $$d ]; then \
			$(MAKE) -C $$d $@; \
		fi \
	done

endif # ! Windows

endif # ! compiling a specific program module
