Sven Eckelmann wrote: > Not a working one for kfreebsd. That's why the system detection is forced to > Linux-userspace with this parameter.
Does make -n print out the target if it's passed the parameter?
It's certianly possible to write a Makefile that requires a parameter,
in order to have an install target, like this:
# INSTALL=install
$(INSTALL):
blah
This patch would make the parameters be propigated into the test.
It seems unlikely to break anything.
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;
}
--
see shy jo
signature.asc
Description: Digital signature

