build: only depend on the actual pidl source files in the pidl rule
authorAndrew Tridgell <tridge@samba.org>
Sat, 27 Mar 2010 05:46:33 +0000 (16:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:10 +0000 (20:27 +1000)
We don't need to depend on the wscript files, or any backup editor
files.

buildtools/wafsamba/samba_pidl.py

index a56a6743de932e6a489f3b4bc125ce32b290369e..14a5b3fb126699aaa1a5a941f5063974a2096ef9 100644 (file)
@@ -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)}',