make: set job count to processor count if possible

This commit is contained in:
Danny Robson 2019-02-22 13:23:49 +11:00
parent 0267670407
commit 939ccf15b9
1 changed files with 6 additions and 0 deletions

6
70-make/profile Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# protect against missing 'nproc'
if [ -x "$(command -v nproc)" ]; then
export MAKEOPTS="-j$(nproc)"
fi