r7896: don't output null rules for blank targets (caued make failure on irix)
authorAndrew Tridgell <tridge@samba.org>
Sat, 25 Jun 2005 03:40:34 +0000 (03:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:47 +0000 (13:18 -0500)
(This used to be commit 8b299e1518b6864dc3ca5b86441290047ef6ed14)

source4/build/smb_build/makefile.pm

index 28157da81e0d943c6745387961fd4ee7f8359968..d38572e9513e8825407383760677e842fd74d766 100644 (file)
@@ -362,6 +362,10 @@ sub _prepare_objlist_rule($)
        my $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
        my $output;
 
+       if (! $ctx->{TARGET}) {
+               return "";
+       }
+
        $output = "$ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST = $tmpdepend\n";
 
        $output .= "$ctx->{TARGET}: ";