fix doc target. Fix generation of atd files.

Need to find a generic method for atd files