Make: take -jN on the command line
Junio C Hamano committed
Sep 7, 2009 at 17:51 UTC
f5d9ae2413bdb50657da07a7645884cb645d06d5
1 file changed
+7
-2
Make
+7
-2
@@ -26,7 +26,7 @@ LANG=C
26
old_style_def_fix=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
27
28
: ${O=-O2}
29
-Wall='-Wall -Wdeclaration-after-statement' tests=
29
+Wall='-Wall -Wdeclaration-after-statement' tests= jobs=
30
while case $# in 0) break ;; esac
31
do
32
case "$1" in
@@ -38,8 +38,12 @@ do
38
o=-Wold-style-definition ;;
39
esac
40
O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
41
+ # -Wvla
42
# O="$O -fwrapv -fno-strict-overflow"
43
;;
44
+ -j*)
45
+ jobs=$1
46
+ ;;
47
-loose | --loose)
48
Wall=
49
;;
@@ -97,7 +101,7 @@ sh -c 'git describe --abbrev=4 HEAD' >/dev/null 2>&1 || {
101
$GIT describe --abbrev=4 HEAD | sed -e 's/-/./g' >version
102
}
103
100
-d="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease"
104
+d="$d ASCIIDOC_NO_ROFF=YesPlease ASCIIDOC8=YesPlease BLK_SHA1=YesPlease"
105
106
# Platform hack
107
if test -z "${make:+set}" && {
@@ -123,6 +127,7 @@ ${make-make} $d \
127
ETC_GITCONFIG=$prefix/etc/gitconfig \
128
${OK_TO_USE_CFLAGS+"CFLAGS=$CFLAGS"} \
129
${tests:+"T=$tests"} \
130
+ $jobs \
131
"$@"
132
status=$?
133
rm -f version