fixed clean target
[mono.git] / mcs / class / corlib / corlib.build
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <!-- NAnt build file for corlib.dll -->
4 <!-- Target windows builds libraries _for_ windows -->
5 <!-- Target linux builds libraries _for_ linux -->
6
7 <project name="corlib" default="linux">
8         <property name="debug" value="false"/>
9
10         <target name="windows">
11                 <mkdir dir="../lib"/>
12                 <csc target="library" output="../lib/corlib.dll" debug="${debug}">
13                         <arg value="/nowarn:1595"/>
14                         <arg value="/unsafe"/>
15                         <sources>
16                                 <includes name="**/*.cs"/> 
17                                 <excludes name="Test/**"/>
18                                 <excludes name="Linux/**"/>
19                                 <excludes name="System.PAL/IOperatingSystem.cs"/>
20                                 <excludes name="System.Collections/Queue.cs"/>
21                         </sources>
22                 </csc>
23                 <nant basedir="Test" target="build"/>
24         </target>
25
26         <target name="linux">
27                 <mkdir dir="../lib"/>
28                 <csc target="library" output="../lib/corlib.dll" debug="${debug}">
29                         <arg value="/nowarn:1595"/>
30                         <arg value="/unsafe"/>
31                         <sources>
32                                 <includes name="**/*.cs"/>
33                                 <excludes name="Test/**"/>
34                                 <excludes name="Windows/**"/>
35                                 <excludes name="System.PAL/IOperatingSystem.cs"/>
36                                 <excludes name="System.Collections/Queue.cs"/>
37                         </sources>
38                 </csc>
39                 <nant basedir="Test" target="build"/>
40         </target>
41
42         <target name="test">
43                 <nant basedir="Test" target="test"/>
44         </target>
45
46         <target name="clean">
47                 <delete file="../lib/corlib.dll" failonerror="false"/>
48                 <nant basedir="Test" target="clean"/>
49         </target>
50 </project>