[llvm-commits] [hlvm] r38188 - /hlvm/trunk/build/documentation.py

Reid Spencer reid at x10sys.com
Sat Jul 7 17:00:56 PDT 2007


Author: reid
Date: Sat Jul  7 19:00:56 2007
New Revision: 38188

URL: http://llvm.org/viewvc/llvm-project?rev=38188&view=rev
Log:
Attempt to get dependencies of doxygen documentation on the header files

Modified:
    hlvm/trunk/build/documentation.py

Modified: hlvm/trunk/build/documentation.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/documentation.py?rev=38188&r1=38187&r2=38188&view=diff

==============================================================================
--- hlvm/trunk/build/documentation.py (original)
+++ hlvm/trunk/build/documentation.py Sat Jul  7 19:00:56 2007
@@ -8,9 +8,11 @@
 def getHeaders(env):
   context = pjoin(env['AbsSrcRoot'],'hlvm')
   result = []
-  for d in glob.glob(pjoin(context,'*.h')):
-    if not os.path.isdir(d):
-      result.append(d)
+  for d in glob.glob(pjoin(context,'*')):
+    if os.path.isdir(d):
+      for f in glob.glob(pjoin(context,d,'*.h')):
+        if not os.path.isdir(f):
+          result.append(f)
   return result
 
 def DoxygenAction(target,source,env):
@@ -25,7 +27,8 @@
   env.Depends(tgtpath,'doxygen.header')
   env.Depends(tgtpath,'doxygen.intro')
   env.Depends(tgtpath,'doxygen.css')
-  env.Depends(tgtpath,getHeaders(env))
+  for f in getHeaders(env):
+    env.Depends(tgtpath,f)
   if 0 == env.Execute(env['with_doxygen'] + ' ' + srcpath + ' >' + 
       pjoin(tgtdir,'doxygen.out')):
     return env.Execute(env['TAR'] + ' zcf ' + tgtpath + ' ' + 





More information about the llvm-commits mailing list