Remove -ansi -pedantic from the g++ command for better optimization
[senf.git] / satscons / Doxygen.py
index 975bbe0..27131e3 100644 (file)
@@ -8,17 +8,18 @@ def replace_ext(n,ext):
     return base+ext
 
 def Doxygen(env, target, source, image=[]):
+    global __file__
     path, name = os.path.split(str(target))
     stamp = os.path.join(path, '.'+name+'.stamp')
     dir = env.Dir(target)
+    mak = os.path.join(os.path.split(__file__)[0],'imgconvert.mak')
     env.Depends(dir,
                 [ env.Command(os.path.splitext(img)[0]+".png", img,
-                              [ 'TERM=dumb make -f imgconvert.mak $TARGET' ])
+                              [ 'TERM=dumb make -f %s $TARGET' % mak ])
                   for img in image ] +
                 [ env.Command(stamp, source,
                               [ 'cd $TARGET.dir && $DOXYGENCOM',
-                                'cd $TARGET.dir/doc/html && (sed -ne \'1,/<table>/p\' <annotated.html && grep -F \'<tr>\' <annotated.html | sort -ft\'>\' -k4 && sed -ne \'/<\\/table>/,$$p\' <annotated.html) >annotated.html.new && mv annotated.html.new annotated.html',
-                                'touch $TARGET' ],
+                                "touch $TARGET" ],
                               source_scanner = SCons.Defaults.ObjSourceScan) ])
     env.Clean(stamp, dir)
     return dir