rpmbuild: Pass $MAKEFLAGS to make {clean,install}

This can speed up these commands by passing, .e.g, -j N args as per
default defined in rpm.sh.

Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: Ia64d3c0a0eef18e449e3020f31eaae8dd4caf483
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14797
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: <sebastian.brzezinka@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
This commit is contained in:
Michal Berger 2022-09-30 10:46:57 +02:00 committed by Tomasz Zawadzki
parent 3915135275
commit b1aaa1e817

View File

@ -53,7 +53,7 @@ polled mode instead of relying on interrupts, which avoids kernel context switch
eliminates interrupt handling overhead. eliminates interrupt handling overhead.
%prep %prep
make clean &>/dev/null || : make clean %{make} &>/dev/null || :
%setup %setup
%build %build
@ -64,7 +64,7 @@ make clean &>/dev/null || :
# Rely mainly on CONFIG # Rely mainly on CONFIG
./configure --disable-unit-tests --disable-tests %{configure} ./configure --disable-unit-tests --disable-tests %{configure}
make %{make} make %{make}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install %{make}
# Include DPDK libs in case --with-shared is in use. # Include DPDK libs in case --with-shared is in use.
%if %{dpdk} %if %{dpdk}