From a29e6592dac010f92730ca7c64f8e4d48d46200d Mon Sep 17 00:00:00 2001 From: Lars Buitinck Date: Wed, 28 Aug 2013 17:39:54 +0200 Subject: [PATCH] fix default prefix handling in makefiles 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. --- Makefile | 4 ---- Makefile.install | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9583085d2..2cf59552a 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,6 @@ ifdef SANITY_CHECK BLASDIRS += reference endif -ifndef PREFIX -PREFIX = /opt/OpenBLAS -endif - SUBDIRS = $(BLASDIRS) ifneq ($(NO_LAPACK), 1) SUBDIRS += lapack diff --git a/Makefile.install b/Makefile.install index c02fd7230..cbe98bc5b 100644 --- a/Makefile.install +++ b/Makefile.install @@ -3,6 +3,8 @@ export GOTOBLAS_MAKEFILE = 1 -include $(TOPDIR)/Makefile.conf_last include ./Makefile.system +PREFIX?=/opt/OpenBLAS + OPENBLAS_INCLUDE_DIR:=$(PREFIX)/include OPENBLAS_LIBRARY_DIR:=$(PREFIX)/lib OPENBLAS_BUILD_DIR:=$(CURDIR)