Revert "core: main: remove all the spam about including make files"

This reverts commit fc91c9410833d3fea2b5aae37ac3a9fa96bbf33a.