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

This reverts commit a53bf194bba486ce2a188e4f7a1bbaaab0539113.