diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-16 00:32:57 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-16 00:32:57 +0000 |
commit | 95bdcf394e439d688a5290a26a15e0bc31144f91 (patch) | |
tree | 88fda948e849796a6d442f04047e3e5de2d32c2d /scripts | |
parent | 62d10fdff63f38da62851e01dcd0ac2af29c369e (diff) |
finish up package makefile
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3786 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_deps.pl | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl index a910a9937b..ef49fa3f41 100755 --- a/scripts/gen_deps.pl +++ b/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"; +} |