mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-15 18:43:54 +01:00
libpbuild: handle error if make fails while compiling or installing
This commit is contained in:
1 parent
36086fdd57
commit
c8d2e065aa
1 file changed
+8
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user