mirror of https://github.com/acidanthera/audk.git
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:
parent
5ea254f612
commit
1f08e795f8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue