build: improve static makefile inclusion