add makefile ,copy from consul