Subject: JFLAG support
To: None <tech-userlevel@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-userlevel
Date: 11/29/1998 21:38:12
Hi,
does anyone object if I commit the following changes to src/Makefile ?
This allow to use parallel commands for 'make build'. The user just has
to put , e.g '-j3' in JFLAG to run 3 commands in parallel when possible.

Using '-j6' on my cyrix 133Mhz cut down the time of a compile by about 30% ...

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--

Index: Makefile
===================================================================
RCS file: /cvsroot/src/Makefile,v
retrieving revision 1.72
diff -u -r1.72 Makefile
--- Makefile	1998/10/18 20:41:39	1.72
+++ Makefile	1998/11/29 20:24:24
@@ -62,22 +62,22 @@
 	false
 .else
 	(cd ${.CURDIR}/gnu/usr.bin/egcs && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install && \
-	    ${MAKE} cleandir)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && \
+	    NOMAN= ${MAKE} install && ${MAKE} cleandir)
 .endif
 .endif
 	${MAKE} includes
 	(cd ${.CURDIR}/lib/csu && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 	(cd ${.CURDIR}/lib && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 	(cd ${.CURDIR}/gnu/lib && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .if !defined(USE_EGCS)
 .if	(${MACHINE_ARCH} != "alpha") && \
 	(${MACHINE_ARCH} != "powerpc")
 	(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .endif
 .endif
 .if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
@@ -85,25 +85,25 @@
 # libcom_err.
 .if exists(domestic/lib/libdes)
 	(cd ${.CURDIR}/domestic/lib/libdes && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .endif
 .if exists(domestic/lib/libcom_err)
 	(cd ${.CURDIR}/domestic/lib/libcom_err && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .endif
 .if exists(domestic/lib/libkrb)
 	(cd ${.CURDIR}/domestic/lib/libkrb && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .endif
 	(cd ${.CURDIR}/domestic/lib && \
-	    ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
+	    ${MAKE} depend && NOMAN= ${MAKE} ${JFLAG} && NOMAN= ${MAKE} install)
 .endif
 .if !defined(DESTDIR)
 	if [ -f /sbin/ldconfig ]; then \
 		/sbin/ldconfig -m /usr/lib; \
 	fi
 .endif
-	${MAKE} depend && ${MAKE} && ${MAKE} install
+	${MAKE} depend && ${MAKE} ${JFLAG} && ${MAKE} install
 	@echo -n "Build finished at: "
 	@date