diff options
author | Wolfgang Denk <wd@denx.de> | 2010-10-05 14:08:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-06 22:19:58 +0200 |
commit | b15fbd4996ee1feedb524abfff7c581d885b51df (patch) | |
tree | 29266a961e5e9801d2a6796364894b28584b8832 | |
parent | d6288664743cdd4824cb877ca424619c827c1256 (diff) | |
download | u-boot-b15fbd4996ee1feedb524abfff7c581d885b51df.zip u-boot-b15fbd4996ee1feedb524abfff7c581d885b51df.tar.gz u-boot-b15fbd4996ee1feedb524abfff7c581d885b51df.tar.bz2 |
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.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
-rw-r--r-- | rules.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 >> $@ ; \ |