[minor] improve pkg build in Makefile