add *.msg file generation to makefile