generation: moving more json and PDF generation out of make.