libpbuild: handle error if make fails while compiling or installing

This commit is contained in:
2021-04-19 15:41:58 +02:00
parent 36086fdd57
commit c8d2e065aa
+8 -2
View File
@@ -586,7 +586,10 @@ pbuild::pre_compile() {
}
pbuild::compile() {
make -j${JOBS}
make -j${JOBS} || \
std::die 3 \
"%s " "${module_name}/${module_version}:" \
"compilation failed!"
}
pbuild::post_compile() {
@@ -598,7 +601,10 @@ pbuild::pre_install() {
}
pbuild::install() {
make install
make install || \
std::die 3 \
"%s " "${module_name}/${module_version}:" \
"compilation failed!"
}
pbuild::install_shared_libs() {