Add mako and device selection to Makefile