--- build.xml	2008-12-24 11:59:05.000000000 -0700
+++ /home/bothner/Android/KawaHello/build.xml	2008-12-24 09:25:09.000000000 -0700
@@ -152,8 +152,23 @@
         </apply>
     </target>
 
+    <!-- Compile this project's .scm files into .class files. -->
+    <target name="scompile" depends="dirs, resource-src, aidl, jcompile">
+      <apply taskname="kawa" executable="java" 
+	     failonerror="true" parallel="true">
+	<arg value="-classpath"/> <arg path="${external-libs}/kawa.jar:${android-jar}"/>
+	<arg value="kawa.repl"/>
+	<arg value="-d"/> <arg path="${outdir-classes}"/>
+	<arg line="--module-static-run --warn-undefined-variable --warn-invoke-unknown-method"/>
+	<arg value="-C"/>
+	<fileset dir=".">
+	  <include name="**/*.scm"/>
+	</fileset>
+      </apply>
+    </target>
+
     <!-- Compile this project's .java files into .class files. -->
-    <target name="compile" depends="dirs, resource-src, aidl">
+    <target name="jcompile" depends="dirs, resource-src, aidl">
         <javac encoding="ascii" target="1.5" debug="true" extdirs=""
                 srcdir="."
                 destdir="${outdir-classes}"
@@ -175,6 +190,9 @@
         </apply>
     </target>
 
+    <target name="compile" depends="jcompile,scompile">
+    </target>
+
     <!-- Put the project's resources into the output package file. -->
     <target name="package-res-and-assets">
         <echo>Packaging resources and assets...</echo>
