change Makefile to a good one coping from github