summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-06 16:50:41 -0400
committerJoey Hess <joey@kitenet.net>2013-05-06 16:50:41 -0400
commit2bb8664eb6b822d40d23ffd55c64ff538849df77 (patch)
treea9a7dfa8d87832824bbc38708ffefdd6b2db92e4 /Debian/Debhelper/Buildsystem
parent9fb5652f1cdaf989ad78cdadd0d85897eb17ef2e (diff)
makefile buildsystem: Pass any parameters specified after -- when running make -n to test for the existance of targets. In some makefiles, the parameters may be necessary to enable a target. Closes: #706923
Diffstat (limited to 'Debian/Debhelper/Buildsystem')
-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 c63b58e..8d0def1 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;
}