mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
ctdb/wscript: pass dep_vars=['VERSION'] to SAMBA_GENERATOR()
This avoid the use of always=True. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
a41a9ad074
commit
bab349c2a1
19
ctdb/wscript
19
ctdb/wscript
@ -171,10 +171,11 @@ def build(bld):
|
||||
bld.RECURSE('lib/tdb')
|
||||
bld.RECURSE('lib/socket_wrapper')
|
||||
|
||||
bld.SAMBA_GENERATOR('ctdb-version-header',
|
||||
target='include/ctdb_version.h',
|
||||
rule='../packaging/mkversion.sh ${TGT} %s' % (VERSION),
|
||||
always=True)
|
||||
t = bld.SAMBA_GENERATOR('ctdb-version-header',
|
||||
target='include/ctdb_version.h',
|
||||
rule='../packaging/mkversion.sh ${TGT} %s' % (VERSION),
|
||||
dep_vars=['VERSION'])
|
||||
t.env.VERSION = VERSION
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('ctdb-util',
|
||||
source=bld.SUBDIR('lib/util',
|
||||
@ -414,10 +415,12 @@ def build(bld):
|
||||
bld.install_dir(bld.env.CTDB_VARDIR)
|
||||
|
||||
sed_expr = 's/@PACKAGE_VERSION@/%s/g' % VERSION
|
||||
bld.SAMBA_GENERATOR('ctdb-pc',
|
||||
source='ctdb.pc.in',
|
||||
target='ctdb.pc',
|
||||
rule='sed -e "%s" ${SRC} > ${TGT}' % sed_expr)
|
||||
t = bld.SAMBA_GENERATOR('ctdb-pc',
|
||||
source='ctdb.pc.in',
|
||||
target='ctdb.pc',
|
||||
rule='sed -e "%s" ${SRC} > ${TGT}' % sed_expr,
|
||||
dep_vars=['VERSION'])
|
||||
t.env.VERSION = VERSION
|
||||
bld.INSTALL_FILES('${LIBDIR}/pkgconfig', 'ctdb.pc')
|
||||
|
||||
# Test binaries
|
||||
|
Loading…
x
Reference in New Issue
Block a user