summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_pidl.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-27 16:46:33 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:10 +1000
commit723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d (patch)
treea939bb900552bc1402b4e38b4786fd75803d91f6 /buildtools/wafsamba/samba_pidl.py
parentecb775de2ee4c6e1821f67a1c8a3eac4191f9c8b (diff)
downloadsamba-723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d.tar.gz
samba-723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d.tar.bz2
samba-723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d.zip
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.
Diffstat (limited to 'buildtools/wafsamba/samba_pidl.py')
-rw-r--r--buildtools/wafsamba/samba_pidl.py4
1 files changed, 3 insertions, 1 deletions
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)}',