From 1d22f2a89891445ac6e3353bff20ff3701685424 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 8 Dec 2012 23:24:41 +0100 Subject: digital/ucoolib/build: add target specific configuration --- digital/ucoolib/build/tools/test/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 digital/ucoolib/build/tools/test/Makefile (limited to 'digital/ucoolib/build/tools/test/Makefile') diff --git a/digital/ucoolib/build/tools/test/Makefile b/digital/ucoolib/build/tools/test/Makefile new file mode 100644 index 00000000..59bd2da0 --- /dev/null +++ b/digital/ucoolib/build/tools/test/Makefile @@ -0,0 +1,16 @@ +CONFIG_GEN = ../config-gen +MODULES_CONFIG = a-Config b-Config + +TARGETS := host:host stm32f4:stm32f4 stm32f4:arm + +TESTS = ok nok-unknown nok-nodefault nok-missdefault nok-toomany nok-badtarget + +all: $(TESTS:%=test-%) + +test-%: Config-% $(MODULES_CONFIG) $(CONFIG_GEN) + expect=$(if $(filter ok,$*),0,1); \ + $(CONFIG_GEN) -p $< -H out-$*/%.hh -T "$(TARGETS)" $(MODULES_CONFIG); \ + test $$expect -eq $$? + +clean: + rm -rf $(TESTS:%=out-%) -- cgit v1.2.3