tbh I just assumed this was some automake magic/implicit rule when I noticed that xbmc/main was being called twice sometimes, which produced the "cannot stat main.d".