Patch makefile to work without git