summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-11-24 17:00:16 +0200
committerTimo Teras <timo.teras@iki.fi>2009-11-24 17:00:16 +0200
commitcec85dedb7fd66cf2c23cafadd7c53eb7afed78f (patch)
tree255a2b44f06e6fb0c2d96feebb38daefae8cb214 /build
parent3ea1a77fb5419ffd2f9c997977b383b5faf75423 (diff)
downloadlibtf-cec85dedb7fd66cf2c23cafadd7c53eb7afed78f.tar.bz2
libtf-cec85dedb7fd66cf2c23cafadd7c53eb7afed78f.tar.xz
build: make make ignore missing dependencies from previous builds
maybe the path or #include file names changed. the dependencies will be autogenerated with new info since the previous pre-requisites are missing.
Diffstat (limited to 'build')
-rw-r--r--build/TFbuild.main9
1 files changed, 6 insertions, 3 deletions
diff --git a/build/TFbuild.main b/build/TFbuild.main
index 23ca461..f0c061b 100644
--- a/build/TFbuild.main
+++ b/build/TFbuild.main
@@ -162,9 +162,12 @@ quiet_cmd_cc_o_c = CC $(printable-target)
cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $(primary_source)
define rule_cc_o_c
- $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \
- (echo 'cmd_$@ := $(call make-cmd,cc_o_c)'; echo; cat $(depfile)) \
- > $@.cmd ; \
+ $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \
+ (echo 'cmd_$@ := $(call make-cmd,cc_o_c)'; \
+ echo; cat $(depfile) ; echo ; \
+ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
+ -e '/^$$/ d' -e 's/$$/ :/' < $(depfile) ) \
+ > $@.cmd ; \
rm $(depfile)
endef