File: Simple.build

package info (click to toggle)
nant 0.85-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,704 kB
  • ctags: 6,757
  • sloc: cs: 50,420; makefile: 129; cpp: 70; xml: 40; sh: 1
file content (22 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<project name="Simple" default="run">
    <property name="debug" value="true"/>

    <target name="clean" description="remove all generated files">
        <delete file="bin/Simple.exe" if="${file::exists('bin/Simple.exe')}" />
        <delete file="bin/Simple.pdb" if="${file::exists('bin/Simple.pdb')}" />
    </target>

    <target name="build" description="compiles the source code">
        <mkdir dir="bin" />
        <csc target="exe" output="bin/Simple.exe" debug="${debug}">
            <sources>
                <include name="Simple.cs" />
            </sources>
        </csc>
    </target>
    
    <target name="run" depends="build">
        <exec program="bin/Simple.exe" />
    </target>
</project>