From: <fwi...@us...> - 2008-08-06 11:59:38
|
Revision: 5091 http://jython.svn.sourceforge.net/jython/?rev=5091&view=rev Author: fwierzbicki Date: 2008-08-06 11:59:35 +0000 (Wed, 06 Aug 2008) Log Message: ----------- call clean if grammars change. Really only needed when *tokens* change, but token changes break things so subtly, and so few work on the grammars anyway, that this is the way to go I think. Modified Paths: -------------- branches/asm/build.xml Modified: branches/asm/build.xml =================================================================== --- branches/asm/build.xml 2008-08-06 02:48:46 UTC (rev 5090) +++ branches/asm/build.xml 2008-08-06 11:59:35 UTC (rev 5091) @@ -313,8 +313,18 @@ </delete> </target> + <target name="clean-if-antlr-needed" unless="antlr.notneeded"> + <!-- this seems to be the only way I could get a clean when there has been a + change to grammar files. If you are working on the grammars you might + want to comment this out, as a clean is really only needed if you change + the tokens defined in Python.g (and cleans make the build slow) --> + <antcall target="clean"/> + </target> + + <target name ="prepare-output" depends="init,needed-check,clean-if-antlr-needed,make-output-dirs"/> + <!-- create output directories --> - <target name ="prepare-output" depends="init"> + <target name ="make-output-dirs" depends="init"> <mkdir dir="${compile.dir}" /> <mkdir dir="${jarjar.dir}" /> <mkdir dir="${gensrc.dir}/org/python/antlr" /> @@ -415,7 +425,7 @@ lazy="${templates.lazy}"/> </target> - <target name="antlr_gen" depends="init,needed-check,prepare-output" unless="antlr.notneeded"> + <target name="antlr_gen" depends="prepare-output" unless="antlr.notneeded"> <java classname="org.antlr.Tool" failonerror="true" fork="true" dir="${jython.base.dir}"> <arg value="-fo"/> <arg path="${work.dir}/build/gensrc/org/python/antlr"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |