From 8903103bd691c3927a644ed9162d6412df9ffeea Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 23 May 2013 09:33:19 +1000 Subject: build: Do not always regenerate the version.h file Reviewed-by: Jelmer Vernooij --- buildtools/wafsamba/samba_patterns.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py index 4db5eea7d6..55ed540670 100644 --- a/buildtools/wafsamba/samba_patterns.py +++ b/buildtools/wafsamba/samba_patterns.py @@ -21,11 +21,15 @@ def write_version_header(task): def SAMBA_MKVERSION(bld, target): '''generate the version.h header for Samba''' + + # We only force waf to re-generate this file if we are installing, + # because only then is information not included in the deps (the + # git revision) included in the version. t = bld.SAMBA_GENERATOR('VERSION', rule=write_version_header, source= 'VERSION', target=target, - always=True) + always=bld.is_install) t.env.is_install = bld.is_install Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION -- cgit