rules.mk: make sure we always create a .depend file
PATCH 1/1 rules.mk: make sure we always create a .depend file
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.
--- rules.mk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
rules.mk +1 -0
@@ -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 >> $@ ; \
Signature · 1 line
1.7.2.3
PATCH 1/1 rules.mk: make sure we always create a .depend file
Hi Wolfgang,
Quoted 7 lines
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 <[email protected]>
Wants-half-of-the-credits: Detlev Zundel <[email protected]>
or to be more mundane
Cheers
Detlev
Signature · 8 lines
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.deWolfgang Denk
AppliedPATCH 1/1 rules.mk: make sure we always create a .depend file
In reply to Wolfgang DenkQuoted 10 lines · In message <[email protected]> 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 <[email protected]>--- rules.mk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied.
Best regards,
Wolfgang Denk
Signature · 5 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 "If the code and the comments disagree, then both are probably wrong." - Norm Schryer