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:
2022-07-15 18:15:34 +02:00
parent 18284822f8
commit 3b0ed98524
+1 -1
View File
@@ -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}:" \