Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 1 | <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 Slee | 54b7ab9 | 2007-03-06 00:06:27 +0000 | [diff] [blame^] | 22 | <exec executable="install"> |
| 23 | <arg line="libthrift.jar /usr/local/lib/" /> |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 24 | </exec> |
| 25 | </target> |
| 26 | |
| 27 | <target name="clean"> |
| 28 | <delete dir="${build}" /> |
| 29 | <delete file="libthrift.jar" /> |
| 30 | </target> |
| 31 | |
| 32 | </project> |