summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gen_deps.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl
index d4b6c76d0..a910a9937 100755
--- a/scripts/gen_deps.pl
+++ b/scripts/gen_deps.pl
@@ -25,10 +25,15 @@ while ($line = <>) {
}
foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
- print "$name: ";
+ my $hasdeps = 0;
+ $line = "$pkg{$name}->{src}-compile:";
foreach my $dep (@{$pkg{$name}->{depends}}) {
- print "$dep ";
+ if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) {
+ $hasdeps = 1;
+ $line .= " $pkg{$dep}->{src}-compile";
+ }
+ }
+ if ($hasdeps) {
+ print "$line\n";
}
- print "\n\tmake -C ".$pkg{$name}->{src}."\n";
- print "\n";
}