mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 02:39:39 +02:00
libpbuild.bash: create $PREFIX dir before install target
The directory $PREFIX should not created to early. If $PREFIX is created at the beginning and a build target fails, the next build attempt will skip all build targets.
This commit is contained in:
@@ -1446,7 +1446,6 @@ pbuild.build_module() {
|
||||
|
||||
${mkdir} -p "${SRC_DIR}"
|
||||
${mkdir} -p "${BUILD_DIR}"
|
||||
${mkdir} -p "${PREFIX}"
|
||||
|
||||
std::info \
|
||||
"%s " \
|
||||
@@ -1469,6 +1468,7 @@ pbuild.build_module() {
|
||||
build_target "${BUILD_DIR}" compile
|
||||
[[ "${build_target}" == "compile" ]] && return 0
|
||||
|
||||
${mkdir} -p "${PREFIX}"
|
||||
std::info \
|
||||
"%s " \
|
||||
"${module_name}/${module_version}:" \
|
||||
|
||||
Reference in New Issue
Block a user