Including module index generation in the build process