aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-05-14 12:30:52 +0000
committerMike Baker <mbm@openwrt.org>2006-05-14 12:30:52 +0000
commit3832f7f14666c5ff39148f9b9a50eacb3663eaec (patch)
treea782939bec301e8f87861ac0dc2c6a0d1ed78df4 /scripts
parentf49412d37f64ff94d099d39769b7d010f6a56f4c (diff)
downloadmaster-187ad058-3832f7f14666c5ff39148f9b9a50eacb3663eaec.tar.gz
master-187ad058-3832f7f14666c5ff39148f9b9a50eacb3663eaec.tar.bz2
master-187ad058-3832f7f14666c5ff39148f9b9a50eacb3663eaec.zip
change syntax
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3778 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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 d4b6c76d09..a910a9937b 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";
}