[build] small improvement on top of the makefile extension of new layers