[make] refactor common atd generation
[make] refactor common atd generation

Summary:
This makes it easier to add more .atd files in the future: just add the
filename to `INFER_ATDGEN_STUB_BASES`.

Reviewed By: mbouaziz

Differential Revision: D6711695

fbshipit-source-id: 0d88daa

jvillard/infer,facebook/infer,facebook/infer,facebook/infer,jvillard/infer,facebook/infer,facebook/infer,facebook/infer,jvillard/infer,jvillard/infer,jvillard/infer,jvillard/infer,facebook/infer,jvillard/infer