#
# Makefile for Unix targets
#
# $Revision$
#

include $(ADK_SRC)/make.env

include makefile.subdirs

ALLSUBDIRS= $(shell \ls -1 | grep -v makefile | \
			                 grep -v rnc_rlc | \
							 grep -v deprecated )

ifeq ($(MAKECMDGOALS), clobber)
SUBDIRS=$(ALLSUBDIRS)
else
SUBDIRS=$(if $(INI_SUBDIRS), $(INI_SUBDIRS), $(ALLSUBDIRS))
endif

all: debug

clobber clean clean-c:
	echo "SUBDIRS: '$(SUBDIRS)'"
	-$(RM) -fr install
	+@BUILD_RULE=$@; $(SUBDIRS_BUILD)

xml_update:

mklinks rmlinks:
	+@BUILD_RULE=$@; $(SUBDIRS_BUILD)

install_hdrs:
ifeq "$(MAKECMDGOALS)" "install_hdrs"
	+@BUILD_RULE=$@; $(SUBDIRS_BUILD)
endif

debug release code: subdirs

.PHONY: subdirs $(SUBDIRS)

subdirs: $(SUBDIRS)

$(SUBDIRS):
		$(MAKE) -C $@ $(MAKECMDGOALS)

