summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-05-23 09:33:19 +1000
committerAndrew Bartlett <abartlet@samba.org>2013-05-27 11:57:02 +1000
commit8903103bd691c3927a644ed9162d6412df9ffeea (patch)
tree4f8f32977352eeef69eb4dd0f0d320de3a17f123 /buildtools/wafsamba
parentcbb833d78e48953b3a04c0463f68c5370f2d4187 (diff)
downloadsamba-8903103bd691c3927a644ed9162d6412df9ffeea.tar.gz
samba-8903103bd691c3927a644ed9162d6412df9ffeea.tar.xz
samba-8903103bd691c3927a644ed9162d6412df9ffeea.zip
build: Do not always regenerate the version.h file
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_patterns.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py
index 4db5eea7d69..55ed540670c 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