Adds conditionnal doxygen AM rules. Fix out-of-tree build