summaryrefslogtreecommitdiff
path: root/Tools/Source
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-21 07:13:10 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-21 07:13:10 +0000
commit1f08e795f837f8080cf61524ab0c8200b7cab991 (patch)
tree49b4e894f37253da3313494da1fb4c09db69ae26 /Tools/Source
parent5ea254f612159f26b7921a95f0d9cfd5719eae1e (diff)
downloadedk2-platforms-1f08e795f837f8080cf61524ab0c8200b7cab991.tar.xz
Added file existing condition to judge if the dep file should be re-generated.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1332 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source')
-rw-r--r--Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java
index 5b76176a64..6a02c1c590 100644
--- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java
+++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java
@@ -363,7 +363,10 @@ public class MakeDeps extends Task {
String line = null;
while ((line = lineReader.readLine()) != null) {
File sourceFile = new File(line);
- if (sourceFile.lastModified() > depsFileTimeStamp) {
+ //
+ // If a file cannot be found (moved or removed) or newer, regenerate the dep file
+ //
+ if ((!sourceFile.exists()) || (sourceFile.lastModified() > depsFileTimeStamp)) {
ret = false;
break;
}