summaryrefslogtreecommitdiff
path: root/openwrt/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
commite63936f36838ffae1b4c1c6c2723ed0913caccd1 (patch)
treed7c9313aac83c04cf993b9cf930ebeb6fb1a362c /openwrt/scripts
parent6afabb7118aa64c8ccbf7b5c7ca479281585da08 (diff)
downloadmtk-20170518-e63936f36838ffae1b4c1c6c2723ed0913caccd1.zip
mtk-20170518-e63936f36838ffae1b4c1c6c2723ed0913caccd1.tar.gz
mtk-20170518-e63936f36838ffae1b4c1c6c2723ed0913caccd1.tar.bz2
change syntax
SVN-Revision: 3778
Diffstat (limited to 'openwrt/scripts')
-rwxr-xr-xopenwrt/scripts/gen_deps.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl
index d4b6c76..a910a99 100755
--- a/openwrt/scripts/gen_deps.pl
+++ b/openwrt/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";
}