Convert shell _pack script into sectioned Makefile.