blob: 06f5a9e28de91f4f0a3b58980de34477747337a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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%/*}
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
|