]> git.donarmstrong.com Git - debhelper.git/commitdiff
honor empty targets
authorJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 23:13:32 +0000 (19:13 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 13 Jun 2011 23:13:32 +0000 (19:13 -0400)
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.

dh

diff --git a/dh b/dh
index 9c9a34323438e803078f1f542392878e06c64787..2241c648f478b8d965218b559fe62b27835a4294 100755 (executable)
--- 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}});
                }