summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2017-12-06 16:29:16 +0000
committerJavier Jardón <jjardon@gnome.org>2018-08-04 13:28:16 +0100
commit9efe120286e7c7fc07cad0b33bd4801a182abe72 (patch)
tree45badd806c993534a9207b9a3286f879fc035d43
parentf918205a2a91beb49ebdcf593b233892c9ebe63c (diff)
downloadbuildstream-jjardon/out-of-tree.tar.gz
buildstream/plugins/elements/autotools.yaml: Make builds out of tree by defaultjjardon/out-of-tree
Similar to what cmake and meson do
-rw-r--r--buildstream/plugins/elements/autotools.yaml12
1 files changed, 8 insertions, 4 deletions
diff --git a/buildstream/plugins/elements/autotools.yaml b/buildstream/plugins/elements/autotools.yaml
index 021d3815c..22d7fa534 100644
--- a/buildstream/plugins/elements/autotools.yaml
+++ b/buildstream/plugins/elements/autotools.yaml
@@ -2,6 +2,8 @@
variables:
+ build-dir: _bst_build_dir
+
autogen: |
export NOCONFIGURE=1;
@@ -22,7 +24,7 @@ variables:
# For backwards compatibility only, do not use.
conf-extra: ''
- conf-cmd: ./configure
+ conf-cmd: configure
conf-args: |
--prefix=%{prefix} \
@@ -41,10 +43,12 @@ variables:
configure: |
- %{conf-cmd} %{conf-args}
+ mkdir %{build-dir}
+ cd %{build-dir}
+ ../%{conf-cmd} %{conf-args}
- make: make
- make-install: make -j1 DESTDIR="%{install-root}" install
+ make: make -C %{build-dir}
+ make-install: make -j1 -C %{build-dir} DESTDIR="%{install-root}" install
# Set this if the sources cannot handle parallelization.
#