mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-18 22:14:16 +00:00
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:
+5
-1
@@ -1,10 +1,14 @@
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
SCSTADMIN_DIR = $(shell if [ ! -h scstadmin ]; then \
|
||||
rm -f scstadmin; \
|
||||
ln -s scstadmin.sysfs scstadmin; \
|
||||
fi; \
|
||||
echo scstadmin)
|
||||
|
||||
MANDIR := $(DESTDIR)/usr/local/man
|
||||
MANDIR := $(DESTDIR)$(PREFIX)/man
|
||||
INITDIR := $(shell if [ -f /etc/slackware-version ]; then \
|
||||
echo /etc/rc.d; \
|
||||
else \
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
MODULE_VERSION = 0.8.22
|
||||
TOOL = scstadmin
|
||||
|
||||
SBINDIR := $(PREFIX)/usr/local/sbin
|
||||
SBINDIR := $(PREFIX)$(PREFIX)/sbin
|
||||
|
||||
all: perl-module
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
MODULE_VERSION = 0.9.10
|
||||
TOOL = scstadmin
|
||||
|
||||
SBINDIR := /usr/local/sbin
|
||||
SBINDIR := $(PREFIX)/sbin
|
||||
|
||||
all: perl-module
|
||||
|
||||
|
||||
Reference in New Issue
Block a user