public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] rules.mk: make sure we always create a .depend file
@ 2010-10-05 12:08 Wolfgang Denk
  2010-10-05 16:15 ` Detlev Zundel
  2010-10-06 20:20 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-10-05 12:08 UTC (permalink / raw)
  To: u-boot

There are some cases where "make depend" would always run when
entering a directory.  This happened when both the $(SRCS) and
$(HOSTSRCS) lists were empty (which is for example typical for the
examples/api/ directory).  Avoid this by making sure that a ".depend"
file gets always created, even if empty.

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 rules.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rules.mk b/rules.mk
index c1670ac..c2860e5 100644
--- a/rules.mk
+++ b/rules.mk
@@ -27,6 +27,7 @@ _depend:	$(obj).depend
 
 $(obj).depend:	$(src)Makefile $(TOPDIR)/config.mk $(SRCS) $(HOSTSRCS)
 		@rm -f $@
+		@touch $@
 		@for f in $(SRCS); do \
 			g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \
 			$(CC) -M $(CPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-06 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 12:08 [U-Boot] [PATCH] rules.mk: make sure we always create a .depend file Wolfgang Denk
2010-10-05 16:15 ` Detlev Zundel
2010-10-06 20:20 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox