updated Makefile to build pkg structure