From: Joey Hess Date: Mon, 13 Jun 2011 23:13:32 +0000 (-0400) Subject: honor empty targets X-Git-Tag: 8.9.0~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=959defaccc3f49cff7c0b020b66c64a28e1ea21b;p=debhelper.git honor empty targets An empty explicit target in debian/rules should still be run, to run its dependencies, and allow defining empty targets in order to skip running what's nornally done by a sequence. --- diff --git a/dh b/dh index 9c9a343..2241c64 100755 --- a/dh +++ b/dh @@ -778,7 +778,7 @@ sub optimize_sequence { foreach my $command (@_) { my $rules_target=rules_target($command); if (defined $rules_target && - ! rules_explicit_target($rules_target)) { + ! defined rules_explicit_target($rules_target)) { # inline the sequence for this implicit target $add->($_) foreach optimize_sequence(@{$sequences{$rules_target}}); }