aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-18 10:35:15 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-18 10:35:15 -0700
commitab8c1d2ee512599a57abe5c0d7fbb1b43080491c (patch)
tree527c841252d0a5c03c4f4a89ff63e4dc61e55244 /tools
parent7e9d4fdf8db15791b6408b717723cd565ecf5d1c (diff)
downloadnasm-ab8c1d2ee512599a57abe5c0d7fbb1b43080491c.tar.gz
nasm-ab8c1d2ee512599a57abe5c0d7fbb1b43080491c.tar.xz
nasm-ab8c1d2ee512599a57abe5c0d7fbb1b43080491c.zip
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/release13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/release b/tools/release
index 06d2ee42..a9de5127 100755
--- a/tools/release
+++ b/tools/release
@@ -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