build: only depend on the actual pidl source files in the pidl rule
[nivanova/samba-autobuild/.git] / 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)}',