You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:50:07 UTC

[buildstream] 01/01: buildstream/plugins/elements/autotools.yaml: Make builds out of tree by default

This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch jjardon/out-of-tree
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 9efe120286e7c7fc07cad0b33bd4801a182abe72
Author: Javier Jardón <jj...@gnome.org>
AuthorDate: Wed Dec 6 16:29:16 2017 +0000

    buildstream/plugins/elements/autotools.yaml: Make builds out of tree by default
    
    Similar to what cmake and meson do
---
 buildstream/plugins/elements/autotools.yaml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/buildstream/plugins/elements/autotools.yaml b/buildstream/plugins/elements/autotools.yaml
index 021d381..22d7fa5 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.
   #