lib/ldb/wscript: pass dep_vars=['LDB_VERSION'] to SAMBA_GENERATOR()
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Aug 2014 08:29:50 +0000 (10:29 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:04 +0000 (21:09 +0100)
bld.add_manual_dependency() only works for files not for environment variables.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit bb9a939e78d54a4b09f38d1f7cec1544239fef34)

lib/ldb/wscript

index f2ea8e112ebba7bc0771bfeb6b96a97087bf7e49..a95133d5f279a3f668d7399c5fbf534c1d586cb0 100755 (executable)
@@ -148,12 +148,11 @@ def build(bld):
         # generate a include/ldb_version.h
         t = bld.SAMBA_GENERATOR('ldb_version.h',
                                 rule='echo "#define LDB_VERSION \\"${LDB_VERSION}\\"" > ${TGT}',
+                                dep_vars=['LDB_VERSION'],
                                 target='include/ldb_version.h',
                                 public_headers='include/ldb_version.h',
                                 public_headers_install=not private_library)
         t.env.LDB_VERSION = VERSION
-        bld.add_manual_dependency(bld.path.find_or_declare('include/ldb_version.h'), VERSION)
-
 
 
         bld.SAMBA_PYTHON('pyldb', 'pyldb.c',