X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FDoxygen.py;h=3508be5d6dbb67b9b19b42b678e7f5b11ab9f77f;hb=63b650afb727cce067817ce9451eecb932446bf3;hp=0e8dd2435f3c7750c2fc630015f243191f71c0af;hpb=9035ae419b1dc9dc537e00d0f7ffc4b22e19422a;p=senf.git diff --git a/senfscons/Doxygen.py b/senfscons/Doxygen.py index 0e8dd24..3508be5 100644 --- a/senfscons/Doxygen.py +++ b/senfscons/Doxygen.py @@ -18,8 +18,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # The Modifications are Copyright (C) 2006,2007 -# Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -# Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +# Fraunhofer Institute for Open Communication Systems (FOKUS) +# Competence Center NETwork research (NET), St. Augustin, GERMANY # Stefan Bund ## \file @@ -248,6 +248,10 @@ class DoxyfileParser: return self._items def DoxyfileParse(env,file): + # We don't parse source files which do not contain the word 'doxyfile'. SCons will + # pass other dependencies to DoxyfileParse which are not doxyfiles ... grmpf ... + if not 'doxyfile' in file.lower(): + return {} ENV = {} ENV.update(env.get("ENV",{})) ENV['TOPDIR'] = env.Dir('#').abspath @@ -339,7 +343,9 @@ def DoxyEmitter(source, target, env): out_dir = data["OUTPUT_DIRECTORY"] dir = env.Dir( os.path.join(source[0].dir.abspath, out_dir) ) dir.sources = source - if env.GetOption('clean'): targets.append(dir) + if env.GetOption('clean'): + targets.append(dir) + return (targets, source) else: out_dir = '.'