Replace commands in makefiles by variables in order to overwrite them