mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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;
|
String line = null;
|
||||||
while ((line = lineReader.readLine()) != null) {
|
while ((line = lineReader.readLine()) != null) {
|
||||||
File sourceFile = new File(line);
|
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;
|
ret = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user