blob: 0e683ff8c4a62a40e347b017c15db81253f9016e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
cd "$(dirname "$0")"
export TOPDIR=$(realpath ..)
if gmake --help >/dev/null 2>&1; then
export GMAKE=gmake
else
export GMAKE=make
fi
for subdir in */Makefile; do
subdir=${subdir%/*}
case $subdir {
(@(?(e)g|uc|)libc|libpthread|uclibc++) ;;
(*)
typeset -u dnu=${subdir//-/_}
dnu=${dnu//+/X}
print "package-\$(ADK_COMPILE_${dnu}) += $subdir"
;;
}
cd $subdir
deps=$($GMAKE show=PKG_BUILDDEP)
cd ..
[[ -n $deps ]] || continue
x="${subdir}-compile:"
for dep in $deps; do
x="$x ${dep}-compile"
done
print -r -- $x
done >Depends.mk
|