Remove unnecessary files and check for build