Skip to content

Commit

Permalink
Add -j$(nproc) make option to speed up build time (#15928)
Browse files Browse the repository at this point in the history
Adding `-j$(nproc)` reduces build time on the external dependencies by
approximately 25%.
  • Loading branch information
vrih authored and balloob committed Aug 14, 2018
1 parent c7f7912 commit 0ad9fcd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions virtualization/Docker/scripts/libcec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ git submodule update --init src/platform
-DPYTHON_LIBRARY="${PYTHON_LIBRARY}" \
-DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDE_DIR}" \
..
make
make -j$(nproc)
make install
ldconfig
)
)
4 changes: 2 additions & 2 deletions virtualization/Docker/scripts/openalpr
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..

# compile the library
make
make -j$(nproc)

# Install the binaries/libraries to your local system (prefix is /usr/local)
make install
make install
4 changes: 2 additions & 2 deletions virtualization/Docker/scripts/ssocr
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git clone --depth 1 https://github.com/auerswal/ssocr.git ssocr
cd ssocr/

# Compile the library
make
make -j$(nproc)

# Install the binaries/libraries to your local system (prefix is /usr/local)
make install
make install
2 changes: 1 addition & 1 deletion virtualization/Docker/scripts/tellstick
Original file line number Diff line number Diff line change
Expand Up @@ -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 -

apt-get update
apt-get install -y --no-install-recommends ${PACKAGES[@]}
apt-get install -y --no-install-recommends ${PACKAGES[@]}

0 comments on commit 0ad9fcd

Please sign in to comment.