Rewrite locations in makefile