Command "tr '\n' ' '" not needed anymore in crystal depends[].

master 0.4.1
Philippe PITTOLI 2020-04-28 18:13:23 +02:00
parent 3177b525a0
commit 971ba41c1b
1 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,12 @@ function crystal.prelude {
}
function crystal.build {
write "${target}: ${src[@]} ${depends[$target]} $(dirdep $target)"
write -n "${target}: ${src[@]}"
for i in ${depends[$target]}; do
v=$(echo ${i} | tr '\n' ' ')
write -n " ${v}"
done
write " $(dirdep $target)"
write "\t@echo '${fg_bold[magenta]} CR > ${fg_bold[white]}$target${reset_color}'"
write "\t${Q}crystal build ${crflags[$target]} \$(CRFLAGS) ${src[@]} -o '${target}'"