abstracting common code from several Makefiles in one place