summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-15 20:26:31 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-15 21:14:09 +0200
commitc6bc23a748c87d8dab1f602703d95bb639e627e4 (patch)
tree26125c454ae37fcc5f7985221c594523c0e06642 /Kernel
parentf9515d56e722cf834cced58dacdc4364827f21ea (diff)
downloadserenity-c6bc23a748c87d8dab1f602703d95bb639e627e4.zip
makeall: Like BuildIt, respect MAKEJOBS
Diffstat (limited to 'Kernel')
-rwxr-xr-xKernel/makeall.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/makeall.sh b/Kernel/makeall.sh
index 73616b02af..f7d7f177b0 100755
--- a/Kernel/makeall.sh
+++ b/Kernel/makeall.sh
@@ -2,7 +2,11 @@
sudo id
-make_cmd="make -j3"
+if [ -z "$MAKEJOBS" ]; then
+ MAKEJOBS=$(nproc)
+fi
+
+make_cmd="make -j $MAKEJOBS"
$make_cmd -C ../LibC clean && \
$make_cmd -C ../LibC && \