build: move inclusion of subdir.mak to main subdir loop