<project name="Viewer" default="dist" basedir=".">
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="lib"/>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}" debug="true"/>
  </target>

  <target name="dist" depends="compile">
    <mkdir dir="${dist}"/>
    <!-- Turn off compression so hg can do efficient diffs. -->
    <jar jarfile="${dist}/sage3d.jar" basedir="${build}" compress="false"/>
  </target>

  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>
</project>