diff options
| author | Mike Baker <mbm@openwrt.org> | 2006-05-16 00:32:57 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2006-05-16 00:32:57 +0000 |
| commit | b64d24928b353bd6c263190c903590632da6ac53 (patch) | |
| tree | f5e548a6c8fc4b2f62105e821920bbb95733ced1 /openwrt/scripts | |
| parent | 4db216c4dec44d29881a3bfa13cf491e603569b9 (diff) | |
| download | mtk-20170518-b64d24928b353bd6c263190c903590632da6ac53.zip mtk-20170518-b64d24928b353bd6c263190c903590632da6ac53.tar.gz mtk-20170518-b64d24928b353bd6c263190c903590632da6ac53.tar.bz2 | |
finish up package makefile
SVN-Revision: 3786
Diffstat (limited to 'openwrt/scripts')
| -rwxr-xr-x | openwrt/scripts/gen_deps.pl | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index a910a99..ef49fa3 100755 --- a/openwrt/scripts/gen_deps.pl +++ b/openwrt/scripts/gen_deps.pl @@ -24,16 +24,23 @@ while ($line = <>) { }; } +$line=""; + foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { + print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n"; + my $hasdeps = 0; - $line = "$pkg{$name}->{src}-compile:"; + my $depline = ""; foreach my $dep (@{$pkg{$name}->{depends}}) { if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) { - $hasdeps = 1; - $line .= " $pkg{$dep}->{src}-compile"; + $depline .= " $pkg{$dep}->{src}-compile"; } } - if ($hasdeps) { - print "$line\n"; + if ($depline ne "") { + $line .= "$pkg{$name}->{src}-compile: $depline\n"; } } + +if ($line ne "") { + print "\n$line"; +} |
