diff options
-rw-r--r-- | mcs/tools/xbuild/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/tools/xbuild/xbuild/Microsoft.Common.targets | 25 |
2 files changed, 29 insertions, 1 deletions
diff --git a/mcs/tools/xbuild/ChangeLog b/mcs/tools/xbuild/ChangeLog index 9760db14924..a6e3afaa93e 100644 --- a/mcs/tools/xbuild/ChangeLog +++ b/mcs/tools/xbuild/ChangeLog @@ -1,3 +1,8 @@ +2009-09-23 Ankit Jain <jankit@novell.com> + + * xbuild/Microsoft.Common.targets: Add 'Rebuild' target. + Also, set DefaultTargets to "Build". + 2009-08-26 Ankit Jain <jankit@novell.com> * xbuild/Microsoft.Common.targets: Remove dummy diff --git a/mcs/tools/xbuild/xbuild/Microsoft.Common.targets b/mcs/tools/xbuild/xbuild/Microsoft.Common.targets index 5db027a93e1..e4489c21838 100644 --- a/mcs/tools/xbuild/xbuild/Microsoft.Common.targets +++ b/mcs/tools/xbuild/xbuild/Microsoft.Common.targets @@ -1,4 +1,4 @@ -<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <TargetExt Condition="'$(OutputType)' == 'Winexe'">.exe</TargetExt> @@ -503,6 +503,29 @@ </CreateItem> </Target> + <!-- Rebuild --> + <PropertyGroup> + <RebuildDependsOn> + BeforeRebuild; + Clean; + $(MSBuildProjectDefaultTargets); + AfterRebuild; + </RebuildDependsOn> + + <RebuildDependsOn Condition="'$(MSBuildProjectDefaultTargets)' == 'Rebuild'"> + BeforeRebuild; + Clean; + Build; + AfterRebuild; + </RebuildDependsOn> + </PropertyGroup> + + <Target Name="BeforeRebuild" /> + <Target Name="AfterRebuild" /> + + <Target Name="Rebuild" + DependsOnTargets="$(RebuildDependsOn)" + Outputs="$(TargetPath)"/> <!-- Clean --> <Target Name="_RecordCleanFile" |