Author: jelmer
Date: 2006-03-19 16:18:07 +0000 (Sun, 19 Mar 2006)
New Revision: 14563

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14563

Log:
Include both private and proto names in makefile rule

Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm       2006-03-19 
15:59:12 UTC (rev 14562)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm       2006-03-19 
16:18:07 UTC (rev 14563)
@@ -453,11 +453,15 @@
 
        $dir =~ s/^\.\///g;
 
+       my $target = "";
+
        my $comment = "Creating ";
        if (defined($ctx->{PRIVATE_PROTO_HEADER})) {
+               $target.= "$dir/$ctx->{PRIVATE_PROTO_HEADER}";
                $comment.= "$dir/$ctx->{PRIVATE_PROTO_HEADER}";
                if (defined($ctx->{PUBLIC_PROTO_HEADER})) {
                        $comment .= " and ";
+                       $target.= " ";
                }
                push (@{$self->{proto_headers}}, 
"$dir/$ctx->{PRIVATE_PROTO_HEADER}");
        } else {
@@ -466,6 +470,7 @@
        
        if (defined($ctx->{PUBLIC_PROTO_HEADER})) {
                $comment.= "$dir/$ctx->{PUBLIC_PROTO_HEADER}";
+               $target .= "$dir/$ctx->{PUBLIC_PROTO_HEADER}";
                push (@{$self->{proto_headers}}, 
"$dir/$ctx->{PUBLIC_PROTO_HEADER}");
        } else {
                $ctx->{PUBLIC_PROTO_HEADER} = $ctx->{PRIVATE_PROTO_HEADER};

Reply via email to