From 939ccf15b9906554c5a8d2bac16684e585f21873 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 22 Feb 2019 13:23:49 +1100 Subject: [PATCH] make: set job count to processor count if possible --- 70-make/profile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 70-make/profile diff --git a/70-make/profile b/70-make/profile new file mode 100644 index 0000000..618e850 --- /dev/null +++ b/70-make/profile @@ -0,0 +1,6 @@ +#!/bin/sh + +# protect against missing 'nproc' +if [ -x "$(command -v nproc)" ]; then + export MAKEOPTS="-j$(nproc)" +fi