# tools/Makefile # This will build all of the nessesary libraries target-y= target-$(CONFIG_PLATFORM_X86DEMO) += x86-demo target-$(CONFIG_PLATFORM_IPAQ) += ipaq target-$(CONFIG_PLATFORM_ZAURUS) += zaurus target-$(CONFIG_PLATFORM_TUXSCREEN) += tuxscreen # This will ensure that we only build one target at a time DIRS=$(sort $(target-y)) subdir-build = $(patsubst %,_subdir_%,$(DIRS)) subdir-clean = $(patsubst %,_clean_%,$(DIRS)) subdir-install = $(patsubst %,_install_%,$(DIRS)) all: $(subdir-build) clean: $(subdir-clean) install: $(subdir-install) $(subdir-build): dummy @ $(MAKE) -C $(patsubst _subdir_%,%,$@) $(subdir-clean): dummy @ $(MAKE) -C $(patsubst _clean_%,%,$@) clean $(subdir-install): dummy @ $(MAKE) -C $(patsubst _install_%,%,$@) install dummy: