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
This commit is contained in:
jwang36 2006-08-21 07:13:10 +00:00
parent 5ea254f612
commit 1f08e795f8
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}