[Lunar-commits] CVS: lunar/var/lib/lunar/functions build.lunar, 1.3, 1.4

Steven Michaelske hardkrash at lunar-linux.org
Sun Jan 11 22:19:57 GMT 2004


Update of /var/cvs/lunar/lunar/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv26644

Modified Files:
	build.lunar 
Log Message:
this is the second part to the make fix


Index: build.lunar
===================================================================
RCS file: /var/cvs/lunar/lunar/var/lib/lunar/functions/build.lunar,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- build.lunar	4 Oct 2003 20:13:35 -0000	1.3
+++ build.lunar	11 Jan 2004 22:19:55 -0000	1.4
@@ -22,6 +22,8 @@
 #                                                          #
 # Parts Copyrighted Kagan Kongar 2002 under GPLv2          #
 #                                                          #
+# Parts Copyrighted Steven Michalske 2004 under GPLv2      #
+#                                                          #
 ############################################################
 
 
@@ -234,7 +236,19 @@
 default_make() {
   debug_msg "default_make ($@)"
   verbose_msg "running \"default_make\""
-  make                               &&
+  # This code is simular to the optimize_make 
+  # function from optimize.lunar
+  if module_installed linux-openmosix; then
+    if [[ "$MAKES" > 1 ]] ; then
+      mosrun -h make -j$MAKES
+      else
+      mosrun -h make
+    fi
+  elif [[ $MAKES > 1 ]] ; then
+    make -j$MAKES
+  else
+    make
+  fi                                 &&
   prepare_install                    &&
   make    install
 } > $C_FIFO 2>&1



More information about the Lunar-commits mailing list