common: fix the Makefile of agents generator