move a bunch of recipes from Makefile to core.mk