summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-04-08 11:47:00 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-04-08 11:47:00 -0300
commitb664cece1c397677d509fa9a41874464f5a44214 (patch)
tree083a8fd2a7e65cd384cab3bd3a75a5e51d89299f /v4l
parent05b97b078973c39870f58b53238dca456d2b43d7 (diff)
downloadmediapointer-dvb-s2-b664cece1c397677d509fa9a41874464f5a44214.tar.gz
mediapointer-dvb-s2-b664cece1c397677d509fa9a41874464f5a44214.tar.bz2
Some cleanups at make install
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/make_makefile.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/v4l/scripts/make_makefile.pl b/v4l/scripts/make_makefile.pl
index 48552c425..1063617a1 100755
--- a/v4l/scripts/make_makefile.pl
+++ b/v4l/scripts/make_makefile.pl
@@ -26,10 +26,12 @@ sub check_line($$$)
$arg =~ s/^([^ ]+ )//;
my $cur=$1;
$arg2 = $arg2.$cur;
+
$cur =~ s/\s+$//;
$cur =~ s/\\$//;
$cur =~ s/\s+$//;
$cur =~ s/\.o$/.ko/;
+
if ( ($cur ne "") && (! ($instdir { $idir } =~ m/($cur) /))) {
$instdir { $idir } = $instdir { $idir }.$cur." ";
}
@@ -115,9 +117,11 @@ printf OUT "install::\n";
printf OUT "\t@strip --strip-debug \$(inst-m)\n\n";
while ( my ($key, $value) = each(%instdir) ) {
- printf OUT "\t\@echo -e \"\\nInstalling \$(KDIR26)/$key files\\n\"\n";
+ printf OUT "\t\@echo -e \"\\nInstalling \$(KDIR26)/$key files\"\n";
printf OUT "\t-install -d \$(KDIR26)/$key\n";
- printf OUT "\t-install -m 644 -c $value \$(KDIR26)/$key\n\n";
+
+ printf OUT "\t\@files='$value'; ";
+ printf OUT "for i in \$\$files; do install -m 644 -c \$\$i \$(KDIR26)/$key; done\n\n";
}
# Creating Remove rule
@@ -127,8 +131,8 @@ printf OUT "\t-rm -r \$(DEST)\n\n";
while ( my ($key, $value) = each(%instdir) ) {
printf OUT "\t\@echo -e \"\\nRemoving old \$(KDIR26)/$key files\\n\"\n";
- printf OUT "\tcd \$(KDIR26)/$key\n";
- printf OUT "\t-rm $value\n\n";
+ printf OUT "\t\@files='$value'; ";
+ printf OUT "for i in \$\$files; do rm \$(KDIR26)/$key/\$\$i; done\n\n";
}
close OUT;