POST Make: fix the sub-dir dependencies missing.
authorYuri Tikhonov <yur@emcraft.com>
Sun, 7 Dec 2008 21:12:50 +0000 (22:12 +0100)
committerWolfgang Denk <wd@denx.de>
Mon, 15 Dec 2008 21:02:15 +0000 (22:02 +0100)
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
post/Makefile

index a402e6adccaae32e3f2b37b7495c8d1b1ae6961e..666a89649eef7c2a5c57492d5bb8c26ca0819bc0 100644 (file)
@@ -45,7 +45,12 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 LIB    := $(obj)$(LIB)
 
-all:   $(LIB)
+all:   postdeps $(LIB)
+
+postdeps:
+       @for lib in $(SPLIB-y) ; do \
+               $(MAKE) -C `dirname $$lib` all ; \
+       done
 
 # generic POST library
 $(GPLIB): $(obj).depend $(OBJS)