refactor validation Makefile