diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-06 16:50:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-06 16:50:41 -0400 |
commit | 2bb8664eb6b822d40d23ffd55c64ff538849df77 (patch) | |
tree | a9a7dfa8d87832824bbc38708ffefdd6b2db92e4 /Debian/Debhelper/Buildsystem/makefile.pm | |
parent | 9fb5652f1cdaf989ad78cdadd0d85897eb17ef2e (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/makefile.pm')
-rw-r--r-- | Debian/Debhelper/Buildsystem/makefile.pm | 4 |
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; } |