From: jwang36 Date: Tue, 4 Jul 2006 14:52:57 +0000 (+0000) Subject: Fixed the cleanall issue which would remove more files than we want X-Git-Tag: edk2-stable201903~25091 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=d3dfaf4b452b91ccb63d1f6008f69c5fe94628dc;hp=7629edbc44625aa7c5e99c24afe8bc2f7506fbf6;ds=sidebyside Fixed the cleanall issue which would remove more files than we want git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@748 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java index b41ea211d2..fa94403b6b 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java @@ -380,9 +380,12 @@ public class PlatformBuildFileGenerator { ele.setAttribute("name", "cleanall"); if (isUnified) { - Element cleanAllEle = document.createElement("delete"); - cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR")); - ele.appendChild(cleanAllEle); + String[] targetList = GlobalData.getToolChainInfo().getTargets(); + for (int i = 0; i < targetList.length; ++i) { + Element cleanAllEle = document.createElement("delete"); + cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR") + File.separatorChar + targetList[i]); + ele.appendChild(cleanAllEle); + } } else { Set set = outfiles.keySet(); Iterator iter = set.iterator();