$ cd mk/flavor/pkg $ pkglint deinstall.mk replace.mk Thanks - I had no idea that pkglint could be run on such .mk files. In my tree, pkglint fails on deinstall with 3 issues after fixing that one. I have fixed $OLDNAME to ${OLDNAME} and will run a few make replace cylces, with and without OLDNAME, and check it in if it works ok.