From 723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Mar 2010 16:46:33 +1100 Subject: build: only depend on the actual pidl source files in the pidl rule We don't need to depend on the wscript files, or any backup editor files. --- buildtools/wafsamba/samba_pidl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba/samba_pidl.py') diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py index a56a6743de..14a5b3fb12 100644 --- a/buildtools/wafsamba/samba_pidl.py +++ b/buildtools/wafsamba/samba_pidl.py @@ -51,7 +51,9 @@ def SAMBA_PIDL(bld, pname, source, try: pidl_src_nodes = bld.pidl_files_cache except AttributeError: - pidl_src_nodes = bld.pidl_files_cache = bld.srcnode.ant_glob('pidl/**/*', flat=False) + bld.pidl_files_cache = bld.srcnode.ant_glob('pidl/**/*.pm', flat=False) + bld.pidl_files_cache.extend(bld.srcnode.ant_glob('pidl', flat=False)) + pidl_src_nodes = bld.pidl_files_cache # the cd .. is needed because pidl currently is sensitive to the directory it is run in t = bld(rule='cd .. && ${PIDL} ${OPTIONS} --outputdir ${OUTPUTDIR} -- ${SRC[0].abspath(env)}', -- cgit