Add precheck script and make target