summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem/makefile.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Debian/Debhelper/Buildsystem/makefile.pm')
-rw-r--r--Debian/Debhelper/Buildsystem/makefile.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Debian/Debhelper/Buildsystem/makefile.pm b/Debian/Debhelper/Buildsystem/makefile.pm
index c63b58ed..8d0def15 100644
--- a/Debian/Debhelper/Buildsystem/makefile.pm
+++ b/Debian/Debhelper/Buildsystem/makefile.pm
@@ -20,7 +20,7 @@ sub exists_make_target {
unshift @opts, "-C", $buildpath if $buildpath ne ".";
open(SAVEDERR, ">&STDERR");
open(STDERR, ">/dev/null");
- open(MAKE, "-|", $this->{makecmd}, @opts, $target);
+ open(MAKE, "-|", $this->{makecmd}, @opts, $target, @_);
my $output=<MAKE>;
chomp $output;
close MAKE;
@@ -46,7 +46,7 @@ sub make_first_existing_target {
my $targets=shift;
foreach my $target (@$targets) {
- if ($this->exists_make_target($target)) {
+ if ($this->exists_make_target($target, @_)) {
$this->do_make($target, @_);
return $target;
}