From 8cbd36afe84685ee1e289fee11065d3eb0cadc22 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 28 Jun 2010 12:07:55 +1000 Subject: build: allow always=True/False on SAMBA_GENERATOR() this allows us to force a rule to always run. Will be used by samba_version Signed-off-by: Andrew Bartlett --- buildtools/wafsamba/wafsamba.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 5ffe4b8f9b..21ed001372 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -484,7 +484,8 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='', group='generators', enabled=True, public_headers=None, header_path=None, - vars=None): + vars=None, + always=False): '''A generic source generator target''' if not SET_TARGET_TYPE(bld, name, 'GENERATOR'): @@ -504,6 +505,9 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='', ext_out='.c', name=name) + if always: + t.always = True + if public_headers is not None: bld.PUBLIC_HEADERS(public_headers, header_path=header_path) return t -- cgit