svn commit: samba r14861 - in branches/SAMBA_4_0/source/build/smb_build: .

metze at samba.org metze at samba.org
Sun Apr 2 12:24:43 GMT 2006


Author: metze
Date: 2006-04-02 12:24:43 +0000 (Sun, 02 Apr 2006)
New Revision: 14861

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

Log:
regenerate the proto headers when the .mk file changes

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


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/config_mk.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/config_mk.pm	2006-04-02 12:02:01 UTC (rev 14860)
+++ branches/SAMBA_4_0/source/build/smb_build/config_mk.pm	2006-04-02 12:24:43 UTC (rev 14861)
@@ -191,6 +191,7 @@
 
 		$input->{$name}{NAME} = $name;
 		$input->{$name}{TYPE} = $type;
+		$input->{$name}{MK_FILE} = $srcdir."/".$filename;
 		$input->{$name}{BASEDIR} = dirname($filename);
 
 		foreach my $key (values %{$result->{$section}}) {

Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm	2006-04-02 12:02:01 UTC (rev 14860)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm	2006-04-02 12:24:43 UTC (rev 14861)
@@ -493,7 +493,7 @@
 		$ctx->{PUBLIC_PROTO_HEADER} = $ctx->{PRIVATE_PROTO_HEADER};
 	}	
 
-	$self->output("$dir/$ctx->{PUBLIC_PROTO_HEADER}: \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST:.o=.c)\n");
+	$self->output("$dir/$ctx->{PUBLIC_PROTO_HEADER}: $ctx->{MK_FILE} \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST:.o=.c)\n");
 	$self->output("\t\@echo \"$comment\"\n");
 
 	$self->output("\t\@\$(PERL) \$(srcdir)/script/mkproto.pl --private=$dir/$ctx->{PRIVATE_PROTO_HEADER} --public=$dir/$ctx->{PUBLIC_PROTO_HEADER} \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST)\n\n");



More information about the samba-cvs mailing list