0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00

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 git clone -s -l "$HERE" nasm
rm -rf nasm/.git nasm/.gitignore 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 # Create files which are in the release but automatically generated
cd nasm cd nasm
./autogen.sh ./autogen.sh
./configure --prefix=/usr/local ./configure --prefix=/usr/local
make perlreq spec manpages "$MAKE" perlreq spec manpages
make alldeps "$MAKE" alldeps
make distclean "$MAKE" distclean
cd .. cd ..
# Clean up any previous attempt # Clean up any previous attempt
@ -75,9 +78,9 @@ find nasm-"$version" -not -type d -print > main
# Create documentation # Create documentation
cd nasm-"$version" cd nasm-"$version"
./configure --prefix=/usr/local ./configure --prefix=/usr/local
make doc "$MAKE" doc
# Remove intermediate files. # Remove intermediate files.
make cleaner "$MAKE" cleaner
cd .. cd ..
# Remove non-documentation # Remove non-documentation