More robust handling for installed headers
[alexxy/gromacs.git] / docs / doxygen / gmxtree.py
index 67240f391f603074436a3e1c5297ecd2f3a572aa..6f12d22e3e1c08c8e1831dad6c5a1760f884a3fa 100644 (file)
@@ -325,6 +325,10 @@ class GeneratedFile(File):
         File.__init__(self, abspath, relpath, directory)
         self._generator_source_file = None
 
+    def scan_contents(self, sourcetree, keep_contents):
+        if os.path.exists(self.get_abspath()):
+            File.scan_contents(self, sourcetree, keep_contents)
+
     def set_generator_source(self, sourcefile):
         self._generator_source_file = sourcefile
 
@@ -623,7 +627,7 @@ class GromacsTree(object):
     .gitattributes for all the files.
 
     load_installed_file_list() can be called to load the list of installed
-    files from the build tree (generated by the find-installed-headers target).
+    files from the build tree (generated by CMake).
 
     scan_files() can be called to read all the files and initialize #include
     dependencies between the files based on the information.  This is done like
@@ -907,7 +911,7 @@ class GromacsTree(object):
 
     def load_installed_file_list(self):
         """Load list of installed files from the build tree."""
-        listpath = os.path.join(self._build_root, 'docs', 'doxygen', 'installed-headers.txt')
+        listpath = os.path.join(self._build_root, 'src', 'gromacs', 'installed-headers.txt')
         with open(listpath, 'r') as installedfp:
             for line in installedfp:
                 path = line.strip()