refactor makefile to ease dev process