diff options
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml index 08cd66c..3301125 100755 --- a/make/build.xml +++ b/make/build.xml @@ -41,7 +41,7 @@ <!-- The source directories. --> <property name="src.java" value="../src/java" /> - <property name="build" value="../${rootrel.build}" /> + <property name="build" location="../${rootrel.build}" /> <property name="gluegen.lib.dir" value="${build}/obj"/> @@ -474,8 +474,20 @@ </copy> </target> + <target name="gluegen.build" depends="init"> + <uptodate property="gluegen.build.skip"> + <srcfiles dir= "." includes="*.xml"/> + <srcfiles dir= "${src.java}" includes="**"/> + <srcfiles dir= "${c.grammar}" includes="**/*.g"/> + <srcfiles dir= "${j.grammar}" includes="**/*.g"/> + <mapper type="merge" to="${build}/gluegen.jar"/> + </uptodate> + <antcall target="gluegen.build.impl" inheritRefs="true"/> + </target> + + <target name="gluegen.build.impl" unless="gluegen.build.skip"> + <antcall target="pre-build" inheritRefs="true"/> - <target name="gluegen.build" depends="init, pre-build"> <!-- Because ANTLR looks for importVocab files in the current working directory, it likes to have all of its files, including supergrammars, in one place, so copy all of the @@ -612,7 +624,7 @@ <copy file="${antlr.jar}" todir="${build}" /> </target> - <target name="all" depends="gluegen.build, junit.compile" /> + <target name="all" depends="init, gluegen.build, junit.compile" /> <target name="clean" depends="init"> <delete includeEmptyDirs="true"> |