From 1af480a32dcbae582aa617410d248663349e7498 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 25 Jun 2005 03:40:34 +0000 Subject: r7896: don't output null rules for blank targets (caued make failure on irix) (This used to be commit 8b299e1518b6864dc3ca5b86441290047ef6ed14) --- source4/build/smb_build/makefile.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 28157da81e..d38572e951 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -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}: "; -- cgit