main: use pkgid
Makefile: update to use --dep-info for automatic dependency tracking