Fixed the clean and distclean targets to only clean packages built by the all target.

Use a common list of packages to build for use by all of the targets.  A <filelist> element is used since the order in which the packages is built is important.  This element is also valid to use when you want to produce an ordered list of directories.  The subant task works on a list of directories so it isn't necessary to specify file names.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@32 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
darylm503 2006-04-25 22:25:54 +00:00
parent e1d20bf4d5
commit 7fa7b1fe81
1 changed files with 18 additions and 13 deletions

View File

@ -10,27 +10,32 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
<project name="mdk" default="all" basedir=".">
<description>
This is the highest-level build file.
It can build all packages or clean up the build products.
</description>
<property environment="env"/>
<target name="all">
<!-- Note: this is an ordered list. The projects have dependencies between them. -->
<filelist
id="Pkg.Dirs"
dir="."
files="Tools,MdePkg,EdkModulePkg,EdkNt32Pkg"/>
<target name="all" description="Build all packages.">
<subant target="" inheritall="false">
<!-- Note: this is an ordered list. The projects have dependencies between them. -->
<filelist dir="."
files="
Tools/build.xml
MdePkg/build.xml
EdkModulePkg/build.xml
EdkNt32Pkg/build.xml
"/>
<filelist refid="Pkg.Dirs"/>
</subant>
</target>
<target name="clean">
<target name="clean" description="Remove compile and assembly artifacts.">
<subant target="clean" inheritall="false">
<fileset dir="." includes="*/build.xml"/>
<filelist refid="Pkg.Dirs"/>
</subant>
</target>
<target name="distclean">
<target name="distclean" description="Remove everything not in the distribution.">
<subant target="distclean" inheritall="false">
<fileset dir="." includes="*/build.xml"/>
<filelist refid="Pkg.Dirs"/>
</subant>
</target>
</project>