summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-10 00:02:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-18 18:42:40 +0900
commit227220b25aad9841eb979c18a0251b71de824e88 (patch)
tree650dc9b76085062741b5341398efdd18d0f95770
parent209164e44f0bd0bbd938bf726e88d0dd29f84d55 (diff)
Skip dependencies on timestamp files
-rwxr-xr-xtool/update-deps1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/update-deps b/tool/update-deps
index 4aaf8124301..45cf5b9cc4c 100755
--- a/tool/update-deps
+++ b/tool/update-deps
@@ -300,6 +300,7 @@ def read_make_deps(cwd)
target = rule_target
deps = rule_sources
deps = deps.scan(%r{[/0-9a-zA-Z._-]+})
+ deps.delete_if {|dep| /\.time\z/ =~ dep} # skip timestamp
next if /\.o\z/ !~ target.to_s
next if /\A\./ =~ target.to_s # skip rules such as ".c.o"
#p [curdir, target, deps]