]> git.donarmstrong.com Git - uiuc_igb_scripts.git/blobdiff - run_make
add the option to give a -j to make
[uiuc_igb_scripts.git] / run_make
index 7049f93286fa3af94a1f5c8e871aec75e65235c2..f26bcfc2022a2e074ece383996222ce2dd29529f 100755 (executable)
--- a/run_make
+++ b/run_make
@@ -1,7 +1,12 @@
 #!/bin/bash
 
-if [ -z "$MAKE_TARGET" ]; then
-    make "$MAKE_TARGET";
+MAKE_OPTS=
+
+if [ -n "$MAKE_PARALLEL" ]; then
+    MAKE_OPTS=-j "$MAKE_PARALLEL"
+fi;
+if [ -n "$MAKE_TARGET" ]; then
+    make $MAKE_OPTS "$MAKE_TARGET";
 else
-    make;
+    make $MAKE_OPTS;
 fi;