PREFIX wasn't communicated to Makefile.install (where it matters) by Makefile. The result is that the default PREFIX is empty and OpenBLAS was being installed in /lib.