tools/release: allow invoking make as a parallel build

If the variable MAKE is set in the environment, use it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-04-18 10:35:15 -07:00
parent 7e9d4fdf8d
commit ab8c1d2ee5

View file

@ -38,13 +38,16 @@ unset GIT_DIR
git clone -s -l "$HERE" nasm
rm -rf nasm/.git nasm/.gitignore
# How to invoke make if MAKE is not set
MAKE="${MAKE:-make}"
# Create files which are in the release but automatically generated
cd nasm
./autogen.sh
./configure --prefix=/usr/local
make perlreq spec manpages
make alldeps
make distclean
"$MAKE" perlreq spec manpages
"$MAKE" alldeps
"$MAKE" distclean
cd ..
# Clean up any previous attempt
@ -75,9 +78,9 @@ find nasm-"$version" -not -type d -print > main
# Create documentation
cd nasm-"$version"
./configure --prefix=/usr/local
make doc
"$MAKE" doc
# Remove intermediate files.
make cleaner
"$MAKE" cleaner
cd ..
# Remove non-documentation