mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 22:56:32 +00:00
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
36 lines
688 B
Makefile
36 lines
688 B
Makefile
ifndef PREFIX
|
|
PREFIX=/usr/local
|
|
endif
|
|
|
|
MODULE_VERSION = 0.9.10
|
|
TOOL = scstadmin
|
|
|
|
SBINDIR := $(PREFIX)/sbin
|
|
|
|
all: perl-module
|
|
|
|
install: all
|
|
$(MAKE) -C scst-$(MODULE_VERSION) install
|
|
install -d $(DESTDIR)$(SBINDIR)
|
|
install -m 755 $(TOOL) $(DESTDIR)$(SBINDIR)
|
|
|
|
uninstall:
|
|
-rm -f $(DESTDIR)$(SBINDIR)/$(TOOL)
|
|
$(MAKE) -C scst-$(MODULE_VERSION) uninstall
|
|
|
|
perl-module:
|
|
@cd ./scst-$(MODULE_VERSION); \
|
|
perl Makefile.PL;
|
|
$(MAKE) -C scst-$(MODULE_VERSION)
|
|
|
|
clean:
|
|
-$(MAKE) -C scst-$(MODULE_VERSION) clean
|
|
|
|
distclean: clean
|
|
-rm -f scst-$(MODULE_VERSION)/Makefile.old
|
|
rm -f *.orig *.rej
|
|
|
|
extraclean: distclean
|
|
|
|
.PHONY: all install uninstall perl-module clean distclean extraclean
|