Allow install SCST in any location

Currently the install location of SCST is pretty much hard coded into 
the Makefiles to be /usr/local.

I am custom building a system for ZFS & SCST and I want to install in 
/usr instead of /usr/local.

Currently I am doing a “find . -name Makefile -exec sed -i 's:/usr/local:/usr:g'
{} \;” to accommodate this.

This patch fixes it.

From Sietse van Zanen <sietse@wizdom.nu>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4791 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-03-08 21:25:45 +00:00
parent 9ea9eec4ef
commit 369863f015
13 changed files with 71 additions and 21 deletions
+5 -1
View File
@@ -20,7 +20,11 @@
# - install and uninstall must be made as root
#
#SCST_INC_DIR := /usr/local/include/scst
ifndef PREFIX
PREFIX=/usr/local
endif
#SCST_INC_DIR := $(PREFIX)/include/scst
#SCST_DIR := $(SCST_INC_DIR)
SCST_INC_DIR := $(SUBDIRS)/../scst/include
SCST_DIR := $(shell pwd)/../scst/src