Without patching of this makefile the build fails. This is also a standard workflow for other modules' autodocs, have a look at other pull requests.