Add a check target to the static makefiles. r=ron