mk: rewrite make files