Makefile: Fix per-directory codegen target

Issue: #26517
1 file changed