Skip to contentSkip to conversation

POST Make: fix the sub-dir dependencies missing.

PATCH New Wolfgang Denk 1 participant 2 messages Dec 7, 2008 – Dec 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POST Make: fix the sub-dir dependencies missing.

From: Yuri Tikhonov <[email protected]>

---
 post/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
post/Makefile +6 -1
index a402e6a..666a896 100644
@@ -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)
Signature · 1 line
1.5.4.2
author Applied
#1 lore raw

PATCH 1/1 POST Make: fix the sub-dir dependencies missing.

Dear Yuri,

Quoted 6 lines · In message <[email protected]> you wrote:

From: Yuri Tikhonov <[email protected]>

---
 post/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Always leave room to add an explanation if it doesn't work out.