[armedbear-cvs] r12235 - trunk/abcl
Mark Evenson
mevenson at common-lisp.net
Fri Oct 30 12:45:46 UTC 2009
Author: mevenson
Date: Fri Oct 30 08:45:42 2009
New Revision: 12235
Log:
Make default action of Ant build to clean then compile.
The former default action was the 'help' target. Now we invoke
'abcl.wrapper' which by default cleans intermediate files, and then
does the necessary steps to create an executable wrapper in either
'abcl' (UNIX) or 'abcl.in'.
To restore the incremental build behavior, set the
'abcl.incremental.build' property either on the command line via the
'-Dabcl.incremental.build=true' option or add the line
abcl.incremental.build=true
into a top-level file named 'build.properties'.
Modified:
trunk/abcl/build.xml
Modified: trunk/abcl/build.xml
==============================================================================
--- trunk/abcl/build.xml (original)
+++ trunk/abcl/build.xml Fri Oct 30 08:45:42 2009
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="antlib:org.apache.tools.ant"
- name="abcl-master" default="help" basedir=".">
+ name="abcl-master" default="abcl.wrapper" basedir=".">
<description>Compiling, testing, and packaging Armed Bear Common Lisp</description>
<target name="abcl" depends="abcl.wrapper"/>
@@ -90,9 +90,16 @@
<pathelement location="${build.classes.dir}"/>
</path>
- <target name="abcl.compile" depends="abcl.compile.lisp">
+ <target name="abcl.compile" depends="abcl.clean.maybe,abcl.compile.lisp">
<echo>Compiled ABCL with Java version: ${java.version}</echo>
</target>
+
+ <target name="abcl.clean.maybe" unless="abcl.build.incremental">
+ <echo>Cleaning all intermediate compilation artifacts.</echo>
+ <echo>Setting 'abcl.build.incremental' enables incremental compilation.</echo>
+ <antcall target="abcl.clean"/>
+ </target>
+
<target name="abcl.init">
<tstamp>
More information about the armedbear-cvs
mailing list