lttng-ust: out-of-tree build
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Jan 2015 18:58:45 +0000 (13:58 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Jan 2015 18:58:45 +0000 (13:58 -0500)
lttng-ust/lttng-ust-master.sh

index 3d52a4965c1e03e4ab9a451204d5d2c9bad6dddf..6075d96ceb27121e20e243b5ea03dedf0ffa5c5d 100755 (executable)
@@ -33,7 +33,24 @@ java-agent)
     ;;
 esac
 
-./configure --prefix=$PREFIX $CONF_OPTS
+BUILD_PATH=$WORKSPACE
+# Build type
+# oot : out-of-tree build
+# dist: build via make dist
+# *   : normal tree build
+case "$build" in
+       oot)
+               BUILD_PATH=$WORKSPACE/oot
+               mkdir -p $BUILD_PATH
+               cd $BUILD_PATH
+               ;;
+       dist)
+               ;;
+       *)
+               ;;
+esac
+
+$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
 make V=1
 make install
 
@@ -43,7 +60,7 @@ mkdir -p $WORKSPACE/tap/unit
 
 cd $WORKSPACE/tests
 
-prove --merge --exec '' - < $WORKSPACE/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
+prove --merge --exec '' - < $BUILD_PATH/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
 
 # TAP plugin is having a hard time with .yml files.
 rm -f $WORKSPACE/tap/unit/meta.yml
This page took 0.024421 seconds and 4 git commands to generate.