clean up device.mk (1st pass)