]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Make: take -jN on the command line
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:51:48 +0000 (17:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:51:48 +0000 (17:51 -0700)
Make

diff --git a/Make b/Make
index 0033ebaf1001bcfba3c1cbee9235e9be3f007578..88ee1b8b0b828e875724fccbba1a95713ec3f833 100755 (executable)
--- a/Make
+++ b/Make
@@ -26,7 +26,7 @@ LANG=C
 old_style_def_fix=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
 
 : ${O=-O2}
-Wall='-Wall -Wdeclaration-after-statement' tests=
+Wall='-Wall -Wdeclaration-after-statement' tests= jobs=
 while case $# in 0) break ;; esac
 do 
        case "$1" in
@@ -38,8 +38,12 @@ do
                        o=-Wold-style-definition ;;
                esac
                O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
+               # -Wvla
                # O="$O -fwrapv -fno-strict-overflow"
                ;;
+       -j*)
+               jobs=$1
+               ;;
        -loose | --loose)
                Wall=
                ;;
@@ -97,7 +101,7 @@ sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
        $GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version
 }
 
-d="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease"
+d="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease BLK_SHA1=YesPlease"
 
 # Platform hack
 if test -z "${make:+set}" && {
@@ -123,6 +127,7 @@ ${make-make} $d \
      ETC_GITCONFIG=$prefix/etc/gitconfig \
      ${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
      ${tests:+"T=$tests"} \
+     $jobs \
      "$@"
 status=$?
 rm -f version