update Makefile for packaging