[M] Change in osmo-dev[master]: gen_makefile: split gen_make into more functions