Add Makefile for generating and testing a patch