From: Don Armstrong Date: Mon, 27 Jul 2015 14:53:29 +0000 (-0500) Subject: add the option to give a -j to make X-Git-Url: https://git.donarmstrong.com/?p=uiuc_igb_scripts.git;a=commitdiff_plain;h=acaec04affdd19d22a55de7cf61e4c028d8440ec;hp=399c3d940d601a40a48e37a0b984be93c57133df add the option to give a -j to make --- diff --git a/run_make b/run_make index e1faf35..f26bcfc 100755 --- a/run_make +++ b/run_make @@ -1,7 +1,12 @@ #!/bin/bash +MAKE_OPTS= + +if [ -n "$MAKE_PARALLEL" ]; then + MAKE_OPTS=-j "$MAKE_PARALLEL" +fi; if [ -n "$MAKE_TARGET" ]; then - make "$MAKE_TARGET"; + make $MAKE_OPTS "$MAKE_TARGET"; else - make; + make $MAKE_OPTS; fi;