diff options
author | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-04-25 22:25:54 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-04-25 22:25:54 +0000 |
commit | 7fa7b1fe817e6478ba9d9b89318df9e20586342c (patch) | |
tree | 9121821be9e21ac9248ddeb866327cb922eea6bb /build.xml | |
parent | e1d20bf4d5743495db28127a9510340007374454 (diff) | |
download | edk2-platforms-7fa7b1fe817e6478ba9d9b89318df9e20586342c.tar.xz |
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
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -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>
|