makefiles: fix ALL_OF_PROJECT_SOURCE_PATHS when empty PROJECT_EXTERNAL_SOURCE_PATHS