Another libonly patch
authorAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 12 Jun 2006 10:55:04 +0000 (10:55 +0000)
committerAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 12 Jun 2006 10:55:04 +0000 (10:55 +0000)
org.gridsite.core/build.xml

index 7d92f11..0f47b59 100644 (file)
@@ -20,6 +20,9 @@
 
        Revision history:
        $Log$
+       Revision 1.12  2005/05/23 13:54:53  dimeglio
+       Added load of build.number file
+
        Revision 1.11  2005/02/16 14:14:39  dimeglio
        Added patch to use globus compilation flags also in the RPMS
        
 
        <target name="compile" depends="checkstyle">
                <if>
+                       <isset property="libonly"/>
+                       <then>
+                               <property name="buildtarget" value="build-lib"/>
+                       </then>
+                       <else>
+                               <property name="buildtarget" value="build"/>
+                       </else>
+               </if>
+               <if>
                        <isset property="build.make.arguments"/>         
                        <then>
                                <!-- Call make default compile target -->       
-                               <make target="build" dir="${module.src.dir}" failonerror="${failonerror}" args="${build.make.arguments}"/>
+                               <make target="${buildtarget}" dir="${module.src.dir}" failonerror="${failonerror}" args="${build.make.arguments}"/>
                        </then>          
                        <else>   
                                <!-- Call make default compile target -->       
-                               <make target="build" dir="${module.src.dir}" failonerror="${failonerror}"/>
+                               <make target="${buildtarget}" dir="${module.src.dir}" failonerror="${failonerror}"/>
                        </else>          
                </if>    
        </target>
 
     <target name="stage" depends="doc">
                <if>
+                       <isset property="libonly"/>
+                       <then>
+                               <property name="installtarget" value="install-lib"/>
+                       </then>
+                       <else>
+                               <property name="installtarget" value="install"/>
+                       </else>
+               </if>
+               <if>
                        <isset property="build.make.arguments"/>         
                        <then>
                                <!-- Call make default compile target -->       
-                               <make target="install" dir="${module.src.dir}" failonerror="${failonerror}" args="${build.make.arguments}"/>
+                               <make target="${installtarget}" dir="${module.src.dir}" failonerror="${failonerror}" args="${build.make.arguments}"/>
                        </then>          
                        <else>   
                                <!-- Call make default compile target -->       
-                               <make target="install" dir="${module.src.dir}" failonerror="${failonerror}"/>
+                               <make target="${installtarget}" dir="${module.src.dir}" failonerror="${failonerror}"/>
                        </else>          
                </if>    
     </target>
 
        </target>
 
-                               <!-- ===============================================
+       <!-- ===============================================
                 Modules proxy targets
             =============================================== -->
 
        <!-- component targets definitions tag = do not remove = -->
 
-
        <!-- Main proxy -->
        <target name="buildmodules" depends="envset"/>