* [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
* [U-Boot] [PATCH] rules.mk: make sure we always create a .depend file
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
1 sibling, 0 replies; 3+ messages in thread
From: Detlev Zundel @ 2010-10-05 16:15 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
> 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>
Wants-half-of-the-credits: Detlev Zundel <dzu@denx.de>
or to be more mundane
Acked-by: Detlev Zundel <dzu@denx.de>
Cheers
Detlev
--
When you loosen yourself from all the obvious delusions - religion,
ideology, Communism - you're still left with the myth of your own
goodness. Which is the final delusion.
-- Philip Roth
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] rules.mk: make sure we always create a .depend file
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
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-10-06 20:20 UTC (permalink / raw)
To: u-boot
In message <1286280535-1282-1-git-send-email-wd@denx.de> you wrote:
> 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(-)
Applied.
Best regards,
Wolfgang Denk
--
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
"If the code and the comments disagree, then both are probably
wrong." - Norm Schryer
^ permalink raw reply [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