path: root/Debian/Debhelper/Buildsystem
diff options
authorJoey Hess <>2009-11-21 13:33:33 -0500
committerJoey Hess <>2009-11-21 13:33:33 -0500
commite275962725279a6254bddf55b11d16c8ddd65c9c (patch)
treeb0ecaee674feea8735f1863076eaeaab42956433 /Debian/Debhelper/Buildsystem
parentb06441fbd6156dd5a8314eda2b3e46dfde56fb90 (diff)
make: Avoid infinite loop that occurrs when testing existence of a target in a certian horribly broken makefile
by making the test stop after it sees one line of output from make. (This may be better replaced with dh's makefile parser in the future.)
Diffstat (limited to 'Debian/Debhelper/Buildsystem')
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/ b/Debian/Debhelper/Buildsystem/
index 083abc4..4781429 100644
--- a/Debian/Debhelper/Buildsystem/
+++ b/Debian/Debhelper/Buildsystem/
@@ -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 --no-print-directory $target 2>/dev/null`;
+ my $ret=`$makecmd -s -n --no-print-directory $target 2>/dev/null | head -n 1`;
chomp $ret;
return length($ret);