mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +00:00
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:
parent
c7f7912bca
commit
0ad9fcd8a0
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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[@]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user