Add -j$(nproc) make option to speed up build time (#15928)

Adding `-j$(nproc)` reduces build time on the external dependencies by
approximately 25%.
This commit is contained in:
Daniel Bowman 2018-08-14 20:28:29 +01:00 committed by Paulus Schoutsen
parent c7f7912bca
commit 0ad9fcd8a0
4 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ git submodule update --init src/platform
-DPYTHON_LIBRARY="${PYTHON_LIBRARY}" \ -DPYTHON_LIBRARY="${PYTHON_LIBRARY}" \
-DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDE_DIR}" \ -DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDE_DIR}" \
.. ..
make make -j$(nproc)
make install make install
ldconfig ldconfig
) )

View File

@ -26,7 +26,7 @@ cd build
cmake -DWITH_TEST=FALSE -DWITH_BINDING_JAVA=FALSE --DWITH_BINDING_PYTHON=FALSE --DWITH_BINDING_GO=FALSE -DWITH_DAEMON=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. cmake -DWITH_TEST=FALSE -DWITH_BINDING_JAVA=FALSE --DWITH_BINDING_PYTHON=FALSE --DWITH_BINDING_GO=FALSE -DWITH_DAEMON=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
# compile the library # compile the library
make make -j$(nproc)
# Install the binaries/libraries to your local system (prefix is /usr/local) # Install the binaries/libraries to your local system (prefix is /usr/local)
make install make install

View File

@ -18,7 +18,7 @@ git clone --depth 1 https://github.com/auerswal/ssocr.git ssocr
cd ssocr/ cd ssocr/
# Compile the library # Compile the library
make make -j$(nproc)
# Install the binaries/libraries to your local system (prefix is /usr/local) # Install the binaries/libraries to your local system (prefix is /usr/local)
make install make install

View File

@ -14,4 +14,4 @@ echo "deb http://download.telldus.com/debian/ stable main" >> /etc/apt/sources.l
wget -qO - http://download.telldus.com/debian/telldus-public.key | apt-key add - wget -qO - http://download.telldus.com/debian/telldus-public.key | apt-key add -
apt-get update apt-get update
apt-get install -y --no-install-recommends ${PACKAGES[@]} apt-get install -y --no-install-recommends ${PACKAGES[@]}