mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-08-09 20:50:29 +02:00
libpbuild: handle error if make fails while compiling or installing
This commit is contained in:
@@ -586,7 +586,10 @@ pbuild::pre_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pbuild::compile() {
|
pbuild::compile() {
|
||||||
make -j${JOBS}
|
make -j${JOBS} || \
|
||||||
|
std::die 3 \
|
||||||
|
"%s " "${module_name}/${module_version}:" \
|
||||||
|
"compilation failed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
pbuild::post_compile() {
|
pbuild::post_compile() {
|
||||||
@@ -598,7 +601,10 @@ pbuild::pre_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pbuild::install() {
|
pbuild::install() {
|
||||||
make install
|
make install || \
|
||||||
|
std::die 3 \
|
||||||
|
"%s " "${module_name}/${module_version}:" \
|
||||||
|
"compilation failed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
pbuild::install_shared_libs() {
|
pbuild::install_shared_libs() {
|
||||||
|
|||||||
Reference in New Issue
Block a user