add build and clean script for m7