Static and shared C libs: allow writing "depends[x]=$(ls src/*.h)".

master
Philippe PITTOLI 2020-04-27 02:50:43 +02:00
parent b3c1b42704
commit 3177b525a0
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ function sharedlib.build {
write -n " ${i%.*}.o"
done
for i in ${depends[@]}; do
write -n " ${i}"
v="$(echo ${i} | tr '\n' ' ' )"
write -n " ${v}"
done
write " ${depends[$target]} $(dirdep $target)"
write "\t@echo '$(LD ${target})'"

View File

@ -5,7 +5,8 @@ function staticlib.build {
write -n " ${i%.c}.o"
done
for i in ${depends[@]}; do
write -n " ${i}"
v="$(echo ${i} | tr '\n' ' ' )"
write -n " ${v}"
done
write " ${depends[$target]} $(dirdep $target)"
write "\t@echo '$(LD ${target})'"