From cbbc2f88c13ab4f49be0640afc2723b8927f821d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 29 Mar 2013 23:49:06 +0100 Subject: Makefile: add 2013 rules --- Makefile | 18 ++++++++++++++++++ digital/io-hub/src/apbirthday/Makefile | 2 ++ 2 files changed, 20 insertions(+) diff --git a/Makefile b/Makefile index 747ebf85..af0245de 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,12 @@ # eval $(make env) # +DIRS_2013 = \ + digital/mimot/src/asserv \ + digital/mimot/src/dirty \ + digital/beacon/src/stub \ + digital/io-hub/src/apbirthday + DIRS_2012 = \ digital/mimot/src/asserv \ digital/mimot/src/dirty \ @@ -25,6 +31,7 @@ DIRS = $(sort \ digital/io/src \ digital/io-hub/src/robospierre \ $(DIRS_2012) \ + $(DIRS_2013) \ ) PYTHON_DIRS = \ @@ -47,6 +54,17 @@ all host clean: all.% host.% clean.%: $(foreach dir,$(DIRS_$*),$(MAKE) -C $(dir) $(@:.$*=) && ) true +all: libopencm3 +libopencm3: + @if test \! -f digital/ucoolib/lib/libopencm3/Makefile; then \ + echo "no libopencm3, this usually means that you should run" \ + "git submodule init, then git submodule update" >&2; \ + echo "another option is to run make host if you are only" \ + "interrested by simulation"; \ + exit 1; \ + fi + $(MAKE) -C digital/ucoolib/lib/libopencm3 + space := space += env: diff --git a/digital/io-hub/src/apbirthday/Makefile b/digital/io-hub/src/apbirthday/Makefile index a785d171..0b570851 100644 --- a/digital/io-hub/src/apbirthday/Makefile +++ b/digital/io-hub/src/apbirthday/Makefile @@ -41,3 +41,5 @@ obj/main.stm32f4.o: angfsm_gen_arm_AI.h angfsm_gen_arm_AI.arm.c: angfsm_gen_arm_AI.h angfsm_gen_arm_AI.h: apbirthday.host ./$< --ang-gen arm && mv angfsm_gen_arm_AI.c angfsm_gen_arm_AI.arm.c + +host: all.host -- cgit v1.2.3