Add check-syntax rule to makefile