Don't build lb_plugin (depends on JP) when LB_STANDALONE
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 26 Apr 2006 15:12:37 +0000 (15:12 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 26 Apr 2006 15:12:37 +0000 (15:12 +0000)
org.glite.lb.server/Makefile

index f069400..7d04413 100644 (file)
@@ -216,7 +216,14 @@ glite_lb_plugin.la: ${PLUGIN_LOBJS}
 
 default all: compile
 
-compile: glite_lb_bkserverd glite_lb_bkindex ${STATIC_LIB_BK} glite_lb_plugin.la
+ifdef LB_STANDALONE
+       PLUGIN_LIB=
+else
+       PLUGIN_LIB=glite_lb_plugin.la
+endif
+
+compile: glite_lb_bkserverd glite_lb_bkindex ${STATIC_LIB_BK} ${PLUGIN_LIB}
+
 
 check: compile test.xml test.query
        -echo check.query not complete yet
@@ -339,7 +346,9 @@ install:
                mkdir -p ${PREFIX}/include/${globalprefix}/${lbprefix} ; \
                (cd ${top_srcdir}/interface && install -m 644 ${HDRS} ${PREFIX}/include/${globalprefix}/${lbprefix}) ; \
                install -m 644 ${STATIC_LIB_BK} ${PREFIX}/lib; \
-               ${INSTALL} -m 755 glite_lb_plugin.la ${PREFIX}/lib; \
+               if [ x${LB_STANDALONE} = x ]; then \
+                       ${INSTALL} -m 755 ${PLUGIN_LIB} ${PREFIX}/lib; \
+               fi; \
        fi
 
 clean: