Added pre-commit.txt and precheck target in Makefile.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>