From c84cfc0ecc46ef05dc7997a128ba9486516cb112 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 19 Mar 2006 02:23:52 +0000 Subject: r14554: Write out header dependencies. This means all C files affected will be rebuilt when a header file is changed. It also means parallel builds work now. It will take a minute or so to generate all the dependency information, but there should be no need to rebuild that information later on, unless a file changes. This behaviour is only enabled when building in developer mode (--enable-developer) and requires a GNU make (or compatible). In all other cases, the file 'static_deps.mk' is included, which contains some basic hardcoded dependency information. (This used to be commit eb435386f015ce1d89eb6f7e7837622ebd9e1951) --- source4/build/smb_build/makefile.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source4/build/smb_build/makefile.pm') diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index aeffc79e4d..3ac4ad53bc 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -509,12 +509,9 @@ sub write($$) $self->output($self->{mkfile}); if ($self->{developer}) { - $self->output(<<__EOD__ - --include \$(DEP_FILES) - -__EOD__ -); + $self->output("-include \$(DEP_FILES)\n"); + } else { + $self->output("include static_deps.mk\n"); } open(MAKEFILE,">$file") || die ("Can't open $file\n"); -- cgit