From: Stefan Metzmacher Date: Thu, 15 Nov 2018 12:37:58 +0000 (+0100) Subject: wafsamba: simplify SAMBA_PIDL_TABLES() rule X-Git-Tag: tdb-1.3.17~734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f7f7ffe577390ed27a232eb4a14fa354c9289e;p=thirdparty%2Fsamba.git wafsamba: simplify SAMBA_PIDL_TABLES() rule The builddir is not bin/default/ instead of just bin/, so we don't need to strip 'default/' anymore. And the '--output ${TGT}' part is not really implemented. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py index 04460d0e656..1e55892127e 100644 --- a/buildtools/wafsamba/samba_pidl.py +++ b/buildtools/wafsamba/samba_pidl.py @@ -121,6 +121,7 @@ Build.BuildContext.SAMBA_PIDL_LIST = SAMBA_PIDL_LIST @before('exec_rule') def collect(self): pidl_headers = LOCAL_CACHE(self.bld, 'PIDL_HEADERS') + # The first source is tables.pl itself self.source = Utils.to_list(self.source) for (name, hd) in pidl_headers.items(): y = self.bld.get_tgen_by_name(name) @@ -136,7 +137,7 @@ def SAMBA_PIDL_TABLES(bld, name, target): bld.SET_BUILD_GROUP('main') t = bld( features = 'collect', - rule = '${PERL} ${SRC} --output ${TGT} | sed "s|default/||" > ${TGT}', + rule = '${PERL} ${SRC} > ${TGT}', ext_out = '.c', before = 'c', update_outputs = True,