Add a post-generate hook.