Simplify makedoc.g