Skip dependencies on timestamp files

This commit is contained in:
Nobuyoshi Nakada 2019-08-10 00:02:17 +09:00
parent 209164e44f
commit 227220b25a
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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]