append modtype to generated makefiles