use the same volume probing as GRUB and set up make dependencies

* See http://scottmcpeak.com/autodepend/autodepend.html