clean up generic.mk