repair makefiles