borrow Makefile from hapi