From 5391551561259e25a1b79af57d8a382c20474253 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sun, 2 Dec 2018 19:50:30 -0700
Subject: [PATCH] Make all make calls parallel

---
 recipes/autoconf/recipe.sh     | 2 +-
 recipes/automake/recipe.sh     | 4 ++--
 recipes/bash/recipe.sh         | 2 +-
 recipes/cmatrix/recipe.sh      | 2 +-
 recipes/curl/recipe.sh         | 2 +-
 recipes/dash/recipe.sh         | 2 +-
 recipes/diffutils/recipe.sh    | 2 +-
 recipes/dosbox/recipe.sh       | 4 ++--
 recipes/duktape/recipe.sh      | 2 +-
 recipes/ffmpeg/recipe.sh       | 2 +-
 recipes/freetype/recipe.sh     | 2 +-
 recipes/gawk/recipe.sh         | 2 +-
 recipes/gigalomania/recipe.sh  | 2 +-
 recipes/git/recipe.sh          | 2 +-
 recipes/gnu-binutils/recipe.sh | 2 +-
 recipes/gnu-grep/recipe.sh     | 2 +-
 recipes/gnu-make/recipe.sh     | 2 +-
 recipes/jansson/recipe.sh      | 2 +-
 recipes/libiconv/recipe.sh     | 2 +-
 recipes/libjpeg/recipe.sh      | 2 +-
 recipes/libpng/recipe.sh       | 2 +-
 recipes/libsodium/recipe.sh    | 2 +-
 recipes/lua/recipe.sh          | 2 +-
 recipes/mdp/recipe.sh          | 3 +--
 recipes/nasm/recipe.sh         | 2 +-
 recipes/ncdu/recipe.sh         | 2 +-
 recipes/ncurses/recipe.sh      | 2 +-
 recipes/ncursesw/recipe.sh     | 2 +-
 recipes/netsurf/recipe.sh      | 3 +--
 recipes/newlib/recipe.sh       | 2 +-
 recipes/newlibtest/recipe.sh   | 3 +--
 recipes/openjazz/recipe.sh     | 2 +-
 recipes/openttd/recipe.sh      | 2 +-
 recipes/patch/recipe.sh        | 2 +-
 recipes/perl/recipe.sh         | 2 +-
 recipes/prboom/recipe.sh       | 2 +-
 recipes/python/recipe.sh       | 2 +-
 recipes/readline/recipe.sh     | 2 +-
 recipes/relibc/recipe.sh       | 4 ++--
 recipes/scummvm/recipe.sh      | 2 +-
 recipes/sdl/recipe.sh          | 2 +-
 recipes/sdl_image/recipe.sh    | 6 +++---
 recipes/sdl_mixer/recipe.sh    | 4 ++--
 recipes/sed/recipe.sh          | 2 +-
 recipes/ssh/recipe.sh          | 2 +-
 recipes/timidity/recipe.sh     | 2 +-
 recipes/vim/recipe.sh          | 2 +-
 recipes/vttest/recipe.sh       | 2 +-
 recipes/xz/recipe.sh           | 2 +-
 49 files changed, 55 insertions(+), 58 deletions(-)

diff --git a/recipes/autoconf/recipe.sh b/recipes/autoconf/recipe.sh
index bc2144757..0d1447d86 100644
--- a/recipes/autoconf/recipe.sh
+++ b/recipes/autoconf/recipe.sh
@@ -14,7 +14,7 @@ function recipe_update {
 function recipe_build {
     wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix=''
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/automake/recipe.sh b/recipes/automake/recipe.sh
index 0384cc65a..d35d47719 100644
--- a/recipes/automake/recipe.sh
+++ b/recipes/automake/recipe.sh
@@ -15,9 +15,9 @@ function recipe_build {
     wget -O lib/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     sed -i 's|.*/doc/help2man.*|\&\& true|' Makefile.in
     sed -i 's|install-info-am install-man|install-info-am|' Makefile.in
-    
+
     ./configure --host=${HOST} --prefix=''
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/bash/recipe.sh b/recipes/bash/recipe.sh
index e473b9303..c9e8672a9 100644
--- a/recipes/bash/recipe.sh
+++ b/recipes/bash/recipe.sh
@@ -14,7 +14,7 @@ function recipe_update {
 function recipe_build {
     wget -O support/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix=/ --disable-readline
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/cmatrix/recipe.sh b/recipes/cmatrix/recipe.sh
index 4e3722c60..0d001a958 100644
--- a/recipes/cmatrix/recipe.sh
+++ b/recipes/cmatrix/recipe.sh
@@ -17,7 +17,7 @@ function recipe_build {
     export LDFLAGS="-L$sysroot/lib"
     export CPPFLAGS="-I$sysroot/include"
     ./configure --host=${HOST} --prefix=/ --without-fonts
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/curl/recipe.sh b/recipes/curl/recipe.sh
index 6e2924187..71f896e49 100644
--- a/recipes/curl/recipe.sh
+++ b/recipes/curl/recipe.sh
@@ -17,7 +17,7 @@ function recipe_build {
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     autoreconf -i
     ./configure --prefix=/ --host=${HOST} --disable-tftp --disable-ftp --disable-ntlm-wb --disable-threaded-resolver --with-zlib="$PWD/../sysroot" --with-ssl="$PWD/../sysroot" --with-ca-path=/ssl/certs
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/dash/recipe.sh b/recipes/dash/recipe.sh
index 36f27244d..8a98fb4f4 100644
--- a/recipes/dash/recipe.sh
+++ b/recipes/dash/recipe.sh
@@ -14,7 +14,7 @@ function recipe_update {
 function recipe_build {
     ./autogen.sh
     ./configure --host=${HOST} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/diffutils/recipe.sh b/recipes/diffutils/recipe.sh
index ea089587f..0b57376fc 100644
--- a/recipes/diffutils/recipe.sh
+++ b/recipes/diffutils/recipe.sh
@@ -14,7 +14,7 @@ function recipe_update {
 function recipe_build {
     autoreconf
     ./configure --host=${HOST} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/dosbox/recipe.sh b/recipes/dosbox/recipe.sh
index c058a76eb..974f51872 100644
--- a/recipes/dosbox/recipe.sh
+++ b/recipes/dosbox/recipe.sh
@@ -20,7 +20,7 @@ function recipe_build {
     ./autogen.sh
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix='' --disable-opengl --disable-sdltest --with-sdl-prefix="$PWD/../sysroot"
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
@@ -38,4 +38,4 @@ function recipe_stage {
     dest="$(realpath $1)"
     make DESTDIR="$dest" install
     skip=1
-} 
+}
diff --git a/recipes/duktape/recipe.sh b/recipes/duktape/recipe.sh
index 65a70a6ce..632e94302 100644
--- a/recipes/duktape/recipe.sh
+++ b/recipes/duktape/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     sed -i "s/= gcc/= $TARGET-gcc/g" Makefile.cmdline
-    make -f Makefile.cmdline
+    make -f Makefile.cmdline -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/ffmpeg/recipe.sh b/recipes/ffmpeg/recipe.sh
index 18ed8d920..28b266bc8 100644
--- a/recipes/ffmpeg/recipe.sh
+++ b/recipes/ffmpeg/recipe.sh
@@ -27,7 +27,7 @@ function recipe_build {
         --enable-zlib \
         --enable-encoder=png \
         --enable-decoder=png
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/freetype/recipe.sh b/recipes/freetype/recipe.sh
index f9befb6bf..78bd7cd99 100644
--- a/recipes/freetype/recipe.sh
+++ b/recipes/freetype/recipe.sh
@@ -18,7 +18,7 @@ function recipe_build {
     export CPPFLAGS="-I$sysroot/include"
 
     ./configure --host=${HOST} --prefix='/'
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/gawk/recipe.sh b/recipes/gawk/recipe.sh
index a51420562..27de56946 100644
--- a/recipes/gawk/recipe.sh
+++ b/recipes/gawk/recipe.sh
@@ -9,7 +9,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix=/ ac_cv_func_gethostbyname=no ac_cv_func_connect=no
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/gigalomania/recipe.sh b/recipes/gigalomania/recipe.sh
index 2bc907936..aecdd715a 100644
--- a/recipes/gigalomania/recipe.sh
+++ b/recipes/gigalomania/recipe.sh
@@ -18,7 +18,7 @@ function recipe_build {
     sysroot="${PWD}/../sysroot"
     export LDFLAGS="-L$sysroot/lib"
     export CPPFLAGS="-I$sysroot/include"
-    make all
+    make all -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/git/recipe.sh b/recipes/git/recipe.sh
index 6469d57e5..b004bd8ed 100644
--- a/recipes/git/recipe.sh
+++ b/recipes/git/recipe.sh
@@ -20,7 +20,7 @@ function recipe_build {
     export LDFLAGS="-L$sysroot/lib"
     export CPPFLAGS="-I$sysroot/include"
     ./configure --host=${HOST} --prefix=/ ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes ac_cv_lib_curl_curl_global_init=yes CURL_CONFIG=no
-    make ${MAKEFLAGS}
+    make ${MAKEFLAGS} -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/gnu-binutils/recipe.sh b/recipes/gnu-binutils/recipe.sh
index 868fe0082..fb6512988 100644
--- a/recipes/gnu-binutils/recipe.sh
+++ b/recipes/gnu-binutils/recipe.sh
@@ -17,7 +17,7 @@ function recipe_build {
     ln -sf "$sysroot/include" "$sysroot/usr/include"
     ln -sf "$sysroot/lib" "$sysroot/usr/lib"
     ./configure --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/ --with-build-sysroot="$sysroot" --disable-gdb --disable-nls --disable-werror
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/gnu-grep/recipe.sh b/recipes/gnu-grep/recipe.sh
index 258c3020e..3cf87f253 100644
--- a/recipes/gnu-grep/recipe.sh
+++ b/recipes/gnu-grep/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/gnu-make/recipe.sh b/recipes/gnu-make/recipe.sh
index 45548c9af..7040db16e 100644
--- a/recipes/gnu-make/recipe.sh
+++ b/recipes/gnu-make/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix=/ CFLAGS="-DPOSIX -DNO_ARCHIVES -DNO_OUTPUT_SYNC" --without-guile
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/jansson/recipe.sh b/recipes/jansson/recipe.sh
index e79db3276..a89e9caa5 100644
--- a/recipes/jansson/recipe.sh
+++ b/recipes/jansson/recipe.sh
@@ -16,7 +16,7 @@ function recipe_build {
     export LDFLAGS="-L$sysroot/lib"
     export CPPFLAGS="-I$sysroot/include"
     ./configure --host=${HOST} --prefix=/
-    make 
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/libiconv/recipe.sh b/recipes/libiconv/recipe.sh
index 580e04446..71f90b2c8 100644
--- a/recipes/libiconv/recipe.sh
+++ b/recipes/libiconv/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix='/' --disable-shared --enable-static
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/libjpeg/recipe.sh b/recipes/libjpeg/recipe.sh
index fda7d87a6..b3361c51c 100644
--- a/recipes/libjpeg/recipe.sh
+++ b/recipes/libjpeg/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix='/'
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/libpng/recipe.sh b/recipes/libpng/recipe.sh
index b065df998..c3ccbb914 100644
--- a/recipes/libpng/recipe.sh
+++ b/recipes/libpng/recipe.sh
@@ -21,7 +21,7 @@ function recipe_build {
     chmod +w config.sub
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix='/'
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/libsodium/recipe.sh b/recipes/libsodium/recipe.sh
index a6cc951e9..b51660778 100644
--- a/recipes/libsodium/recipe.sh
+++ b/recipes/libsodium/recipe.sh
@@ -15,7 +15,7 @@ function recipe_build {
     # Disclaimer: No idea what I'm doing
     ./autogen.sh
     ./configure --host=${HOST} --prefix='/'
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/lua/recipe.sh b/recipes/lua/recipe.sh
index 543b08c8f..a24d9c088 100644
--- a/recipes/lua/recipe.sh
+++ b/recipes/lua/recipe.sh
@@ -12,7 +12,7 @@ function recipe_update {
 }
 
 function recipe_build {
-    make generic CC="${HOST}-gcc -std=gnu99"
+    make generic CC="${HOST}-gcc -std=gnu99" -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/mdp/recipe.sh b/recipes/mdp/recipe.sh
index 91fd7812b..e3a9b834c 100644
--- a/recipes/mdp/recipe.sh
+++ b/recipes/mdp/recipe.sh
@@ -16,8 +16,7 @@ function recipe_build {
     sysroot="${PWD}/../sysroot"
     export CFLAGS="-I$sysroot/include -I$sysroot/include/ncursesw"
     export LDFLAGS="-L$sysroot/lib"
-
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/nasm/recipe.sh b/recipes/nasm/recipe.sh
index 66c5f9d7f..46150a345 100644
--- a/recipes/nasm/recipe.sh
+++ b/recipes/nasm/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix=""
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/ncdu/recipe.sh b/recipes/ncdu/recipe.sh
index 46131850c..26a9a8bbf 100644
--- a/recipes/ncdu/recipe.sh
+++ b/recipes/ncdu/recipe.sh
@@ -18,7 +18,7 @@ function recipe_build {
     ./configure \
         --build x86_64-pc-linux-gnu \
         --host "$HOST"
-    make
+    make -j"$(nproc)"
     skip=1
 }
 function recipe_test {
diff --git a/recipes/ncurses/recipe.sh b/recipes/ncurses/recipe.sh
index c4e45dce3..44ab1c745 100644
--- a/recipes/ncurses/recipe.sh
+++ b/recipes/ncurses/recipe.sh
@@ -15,7 +15,7 @@ function recipe_update {
 function recipe_build {
     export CPPFLAGS="-P"
     ./configure --host=${HOST} --prefix="" --disable-db-install --without-ada
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/ncursesw/recipe.sh b/recipes/ncursesw/recipe.sh
index 8f454dbe9..3af5af5b7 100644
--- a/recipes/ncursesw/recipe.sh
+++ b/recipes/ncursesw/recipe.sh
@@ -15,7 +15,7 @@ function recipe_update {
 function recipe_build {
     export CPPFLAGS="-P"
     ./configure --host=${HOST} --prefix="" --enable-widec --disable-db-install
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/netsurf/recipe.sh b/recipes/netsurf/recipe.sh
index 19b3faca4..e00cab215 100644
--- a/recipes/netsurf/recipe.sh
+++ b/recipes/netsurf/recipe.sh
@@ -18,8 +18,7 @@ function recipe_build {
     export TARGET="framebuffer"
     export CFLAGS="-I$sysroot/include -I${PWD}/inst-${TARGET}/include"
     export LDFLAGS="-L$sysroot/lib -L${PWD}/inst-${TARGET}/lib -Wl,--allow-multiple-definition"
-
-    make V=1
+    make V=1 -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/newlib/recipe.sh b/recipes/newlib/recipe.sh
index cb92eb327..979fb8ccf 100644
--- a/recipes/newlib/recipe.sh
+++ b/recipes/newlib/recipe.sh
@@ -25,7 +25,7 @@ function recipe_build {
     popd
 
     CC= ./configure --target="${HOST}" --prefix=/
-    make all
+    make all -j"$(nproc)"
 
     skip=1
 }
diff --git a/recipes/newlibtest/recipe.sh b/recipes/newlibtest/recipe.sh
index 5c34bd423..237f08c16 100644
--- a/recipes/newlibtest/recipe.sh
+++ b/recipes/newlibtest/recipe.sh
@@ -16,8 +16,7 @@ function recipe_build {
     export CFLAGS="-static -nostdinc -I $sysroot/include -I /usr/lib/gcc/x86_64-unknown-redox/7.0.1/include/ -nostdlib -L $sysroot/lib"
     export CRT="$sysroot/lib/crt0.o"
     export CLIBS="-lc -lm"
-
-    make all
+    make all -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/openjazz/recipe.sh b/recipes/openjazz/recipe.sh
index 288bbf0f2..b051dec2a 100644
--- a/recipes/openjazz/recipe.sh
+++ b/recipes/openjazz/recipe.sh
@@ -22,7 +22,7 @@ function recipe_build {
     autoconf
     wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix=''
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/openttd/recipe.sh b/recipes/openttd/recipe.sh
index 108cfeb86..42c838bf2 100644
--- a/recipes/openttd/recipe.sh
+++ b/recipes/openttd/recipe.sh
@@ -15,7 +15,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --build=`gcc -dumpmachine` --host=${HOST} --prefix='' --enable-static --without-liblzo2 --disable-network --without-threads
-    make VERBOSE=1
+    make VERBOSE=1 -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/patch/recipe.sh b/recipes/patch/recipe.sh
index 3f54f7f3f..52d8934d9 100644
--- a/recipes/patch/recipe.sh
+++ b/recipes/patch/recipe.sh
@@ -15,7 +15,7 @@ function recipe_build {
     wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     autoreconf
     ./configure --host=${HOST} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/perl/recipe.sh b/recipes/perl/recipe.sh
index 465684369..d2d41986c 100644
--- a/recipes/perl/recipe.sh
+++ b/recipes/perl/recipe.sh
@@ -22,7 +22,7 @@ function recipe_build {
     sed -i "s/^#define Netdb_name_t.*/#define Netdb_name_t const char*/" config.h # XXX
     sed -i 's/#define Strerror(e).*$/#define Strerror(e) strerror(e)/' config.h #
     echo "#define HAS_VPRINTF" >> config.h
-    make LIBS=-lm
+    make LIBS=-lm -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/prboom/recipe.sh b/recipes/prboom/recipe.sh
index cf4ccb141..95ac19249 100644
--- a/recipes/prboom/recipe.sh
+++ b/recipes/prboom/recipe.sh
@@ -16,7 +16,7 @@ function recipe_build {
     autoreconf -if
     wget -O autotools/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --prefix=/ --host=${HOST} --disable-sdltest --disable-cpu-opt --disable-gl --without-net --with-sdl-prefix="$PWD/../sysroot"
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/python/recipe.sh b/recipes/python/recipe.sh
index 5c8ca1123..3f3643db7 100644
--- a/recipes/python/recipe.sh
+++ b/recipes/python/recipe.sh
@@ -16,7 +16,7 @@ function recipe_update {
 function recipe_build {
     cp ../config.site ./
     ./configure --host=${HOST} --build=${ARCH} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/readline/recipe.sh b/recipes/readline/recipe.sh
index 773901ceb..665678bca 100644
--- a/recipes/readline/recipe.sh
+++ b/recipes/readline/recipe.sh
@@ -17,7 +17,7 @@ function recipe_build {
     export LDFLAGS="-L$sysroot/lib"
     export CFLAGS="-I$sysroot/include"
     ./configure --disable-shared --host=${HOST} --prefix=""
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/relibc/recipe.sh b/recipes/relibc/recipe.sh
index fe790d51e..1807bcc96 100644
--- a/recipes/relibc/recipe.sh
+++ b/recipes/relibc/recipe.sh
@@ -1,8 +1,8 @@
 GIT=https://gitlab.redox-os.org/redox-os/relibc.git
 
 function recipe_build {
-    make
-    make -C tests
+    make -j"$(nproc)"
+    make -C tests -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/scummvm/recipe.sh b/recipes/scummvm/recipe.sh
index d5f5ff085..bd573dad6 100644
--- a/recipes/scummvm/recipe.sh
+++ b/recipes/scummvm/recipe.sh
@@ -25,7 +25,7 @@ function recipe_build {
         --with-zlib-prefix="$sysroot" \
         --disable-timidity \
         --disable-mt32emu
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/sdl/recipe.sh b/recipes/sdl/recipe.sh
index 94eb69e4c..433536b6e 100644
--- a/recipes/sdl/recipe.sh
+++ b/recipes/sdl/recipe.sh
@@ -18,7 +18,7 @@ function recipe_update {
 function recipe_build {
     ./autogen.sh
     ./configure --prefix=/ --host=${HOST} --disable-shared --disable-pulseaudio --disable-video-x11 --disable-loadso --disable-threads --enable-audio --enable-dummyaudio --enable-video-orbital --enable-cdrom
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/sdl_image/recipe.sh b/recipes/sdl_image/recipe.sh
index eb7a479d3..ea07b351a 100644
--- a/recipes/sdl_image/recipe.sh
+++ b/recipes/sdl_image/recipe.sh
@@ -18,7 +18,7 @@ function recipe_update {
 function recipe_build {
     ./autogen.sh
     ./configure --prefix=/ --host=${HOST} --disable-shared --disable-sdltest --enable-png --enable-jpg
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
@@ -31,9 +31,9 @@ function recipe_clean {
     make clean
     skip=1
 }
- 
+
 function recipe_stage {
     dest="$(realpath $1)"
     make DESTDIR="$dest" install
     skip=1
-}
\ No newline at end of file
+}
diff --git a/recipes/sdl_mixer/recipe.sh b/recipes/sdl_mixer/recipe.sh
index 1e7cca349..b8a7338e7 100644
--- a/recipes/sdl_mixer/recipe.sh
+++ b/recipes/sdl_mixer/recipe.sh
@@ -18,7 +18,7 @@ function recipe_update {
 function recipe_build {
     ./autogen.sh
     ./configure --prefix=/ --host=${HOST} --disable-shared --disable-sdltest --disable-music-cmd --disable-music-mp3 --disable-smpegtest
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
@@ -36,4 +36,4 @@ function recipe_stage {
     dest="$(realpath $1)"
     make DESTDIR="$dest" install
     skip=1
-}
\ No newline at end of file
+}
diff --git a/recipes/sed/recipe.sh b/recipes/sed/recipe.sh
index dac91eb1e..c1de02482 100644
--- a/recipes/sed/recipe.sh
+++ b/recipes/sed/recipe.sh
@@ -13,7 +13,7 @@ function recipe_update {
 
 function recipe_build {
     ./configure --host=${HOST} --prefix=/
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/ssh/recipe.sh b/recipes/ssh/recipe.sh
index c69a29078..43ad7c677 100644
--- a/recipes/ssh/recipe.sh
+++ b/recipes/ssh/recipe.sh
@@ -31,7 +31,7 @@ function newlib_build {
     popd
 
     CC= ./configure --target="${HOST}" --prefix=/
-    make all
+    make all -j"$(nproc)"
     make DESTDIR="$sysroot" install
     cd ..
     cp -r $sysroot/x86_64-unknown-redox/* $sysroot
diff --git a/recipes/timidity/recipe.sh b/recipes/timidity/recipe.sh
index fd9ba87c0..bd905cd58 100644
--- a/recipes/timidity/recipe.sh
+++ b/recipes/timidity/recipe.sh
@@ -17,7 +17,7 @@ function recipe_build {
     autoreconf -f -i
     wget -O autoconf/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix='' --enable-vt100
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/vim/recipe.sh b/recipes/vim/recipe.sh
index 48a920e83..a0d0e686b 100644
--- a/recipes/vim/recipe.sh
+++ b/recipes/vim/recipe.sh
@@ -24,7 +24,7 @@ function recipe_build {
     export vim_cv_stat_ignores_slash=no
     export vim_cv_memmove_handles_overlap=yes
     ./configure --host=${HOST} --prefix=/ --with-tlib=ncurses
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/vttest/recipe.sh b/recipes/vttest/recipe.sh
index 9eaa3eca0..59adc9343 100644
--- a/recipes/vttest/recipe.sh
+++ b/recipes/vttest/recipe.sh
@@ -14,7 +14,7 @@ function recipe_update {
 function recipe_build {
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix=''
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
diff --git a/recipes/xz/recipe.sh b/recipes/xz/recipe.sh
index 25d2556a4..0a643b03f 100644
--- a/recipes/xz/recipe.sh
+++ b/recipes/xz/recipe.sh
@@ -16,7 +16,7 @@ function recipe_build {
     chmod +w build-aux/config.sub
     wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     ./configure --host=${HOST} --prefix=/ --enable-threads=no
-    make
+    make -j"$(nproc)"
     skip=1
 }
 
-- 
GitLab