Maybe using make's shell function will help.