diff options
Diffstat (limited to 'package/xx')
-rw-r--r-- | package/xx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/package/xx b/package/xx index 529a46d6f..b46ef0472 100644 --- a/package/xx +++ b/package/xx @@ -23,13 +23,17 @@ rm -f kdeps kaputt for a in */Makefile; do sd=${a%/*} cd $sd - deps=$($GMAKE show=PKG_DEPENDS) - cd .. - for dep in $deps; do - if [[ $dep = kmod-* ]]; then - print $sd $dep >>kdeps - continue - fi - [[ -e pkglist.d/$dep ]] || print $sd $dep >>kaputt + pa=$($GMAKE show=ALL_PKGOPTS) # pa: all subpackage options + for xu in $pa; do # xu: package option uppercase + x=$($GMAKE show=PKGNAME_$xu) # x: subpackage name + deps=$($GMAKE show=PKGDEPS_$xu) + for dep in $deps; do + if [[ $dep = kmod-* ]]; then + print $x $dep >>../kdeps + continue + fi + [[ -e ../pkglist.d/$dep ]] || print $x $dep >>../kaputt + done done + cd .. done |