blob: cd010171740a712a9d99c5829b85698b6823eec9 [file] [log] [blame]
Mark Slee83c52a82006-06-07 06:51:18 +00001<project name="libthrift" default="dist" basedir=".">
2
3 <description>Thrift Build File</description>
4
5 <property name="src" location="src" />
6 <property name="build" location="build" />
7
8 <target name="init">
9 <tstamp />
10 <mkdir dir="${build}"/>
11 </target>
12
13 <target name="compile" depends="init">
14 <javac srcdir="${src}" destdir="${build}" />
15 </target>
16
17 <target name="dist" depends="compile">
18 <jar jarfile="libthrift.jar" basedir="${build}"/>
19 </target>
20
21 <target name="install" depends="dist">
Mark Slee54b7ab92007-03-06 00:06:27 +000022 <exec executable="install">
23 <arg line="libthrift.jar /usr/local/lib/" />
Mark Slee83c52a82006-06-07 06:51:18 +000024 </exec>
25 </target>
26
27 <target name="clean">
28 <delete dir="${build}" />
29 <delete file="libthrift.jar" />
30 </target>
31
32</project>