dependency compilation

This commit is contained in:
2024-07-15 23:01:38 +03:00
parent 023f0b1d40
commit b7109ef9fa
11 changed files with 198 additions and 158 deletions

View File

@@ -5,21 +5,8 @@ try_delete_dir_or_file "$OUTDIR"
myprint "${WHITE}deleting build logs"
rm -rf *.log
for tmpfile in $(ls -a | grep -e '\.rebuild.*\.tmp'); do
try_delete_dir_or_file "$tmpfile"
for dep in $ENABLED_DEPENDENCIES; do
load_dependency_config "$DEPENDENCY_CONFIGS_DIR/$dep.config"
cd "$DEP_WORKING_DIR"
exec_command "$DEP_CLEAN_COMMAND"
done
set +e
OLDIFS="$IFS"
IFS=$'\n'
cd "$DEPS_BASEDIR"
for dep in $DEPS; do
dep_dir=$(safeprint ${dep/=*/} | tr -d '[:blank:]')
print_header "${CYAN}" "─" "$dep_dir"
cd "$dep_dir"
make clean
cd ..
done
IFS="$OLDIFS"
cd ..
set -e