Port make-args feature from make to autotools
This is important not just for plain makefile elements but
also for autotools elements
diff --git a/src/buildstream_plugins/elements/autotools.yaml b/src/buildstream_plugins/elements/autotools.yaml
index 80f35e0..c8ba33b 100644
--- a/src/buildstream_plugins/elements/autotools.yaml
+++ b/src/buildstream_plugins/elements/autotools.yaml
@@ -45,8 +45,14 @@
%{conf-cmd} %{conf-args}
- make: make -C "%{build-dir}"
- make-install: make -j1 -C "%{build-dir}" DESTDIR="%{install-root}" install
+ make-args: >-
+ -C "%{build-dir}"
+ make-install-args: >-
+ %{make-args}
+ DESTDIR="%{install-root}"
+ install
+ make: make %{make-args}
+ make-install: make -j1 %{make-install-args}
# Set this if the sources cannot handle parallelization.
#