diff options
author | Modestas Vainius <modestas@vainius.eu> | 2009-06-11 18:17:36 +0300 |
---|---|---|
committer | Modestas Vainius <modestas@vainius.eu> | 2009-06-11 18:17:36 +0300 |
commit | 4e364add6f7e61d7915d62ab031d681529d5032a (patch) | |
tree | 8e90b01875cbd97fa8f9aad532c5cdd4043a9d02 /Debian/Debhelper/Buildsystem | |
parent | a7eeaa0001d4c12a1df6df17de2cb437dbab7423 (diff) |
Ensure make doesn't print directories when checking for target existance.
Whenever make is run with --print-directory option, make -C sometimes print
Entering/Leaving directory messages to stdout even with -s in effects This
breakes a check for target existance as it relies on make printing nothing when
target does not do anything. Hence explicitly pass --no-print-directory to make
to avoid it.
Signed-off-by: Modestas Vainius <modestas@vainius.eu>
Diffstat (limited to 'Debian/Debhelper/Buildsystem')
-rw-r--r-- | Debian/Debhelper/Buildsystem/makefile.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/makefile.pm b/Debian/Debhelper/Buildsystem/makefile.pm index 47244408..6a9e6877 100644 --- a/Debian/Debhelper/Buildsystem/makefile.pm +++ b/Debian/Debhelper/Buildsystem/makefile.pm @@ -25,7 +25,7 @@ sub exists_make_target { # Use make -n to check to see if the target would do # anything. There's no good way to test if a target exists. - my $ret=`$makecmd -s -n $target 2>/dev/null`; + my $ret=`$makecmd -s -n --no-print-directory $target 2>/dev/null`; chomp $ret; return length($ret); } |