Patch from Benjamin Yates <benjamin@rqdq.com> improving archlinux pkgbuild build.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-07-28 18:44:06 +00:00
parent f1313dfc7e
commit 2d9343958b
3 changed files with 9 additions and 5 deletions

View File

@@ -70,8 +70,10 @@ MOD_VERS := $(shell ls Module.symvers 2>/dev/null)
install: all
-rm -f $(INSTALL_DIR)/scsi_tgt.ko
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_DEV=m \
modules_install
install -d $(INSTALL_DIR)
install -d $(INSTALL_DIR)/dev_handlers
install -m 644 dev_handlers/*.ko $(INSTALL_DIR)/dev_handlers
install -m 644 scst.ko $(INSTALL_DIR)
install -d $(INSTALL_DIR_H)
install -m 644 ../include/scst.h $(INSTALL_DIR_H)
install -m 644 ../include/scst_sgv.h $(INSTALL_DIR_H)
@@ -87,7 +89,7 @@ ifneq ($(MOD_VERS),)
install -m 644 Module.symvers $(INSTALL_DIR_H)
endif
-/sbin/depmod -a $(KVER)
mkdir -p /var/lib/scst/pr
mkdir -p $(DESTDIR)/var/lib/scst/pr
@echo "****************************************************************"
@echo "*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*"
@echo "*!! !!*"

View File

@@ -5,8 +5,9 @@ SBINDIR := $(PREFIX)/usr/local/sbin
all: perl-module
install:
install: all
$(MAKE) -C scst-$(MODULE_VERSION) install
install -d $(DESTDIR)$(SBINDIR)
install -m 755 $(TOOL) $(DESTDIR)$(SBINDIR)
uninstall:

View File

@@ -5,8 +5,9 @@ SBINDIR := $(PREFIX)/usr/local/sbin
all: perl-module
install:
install: all
$(MAKE) -C scst-$(MODULE_VERSION) install
install -d $(DESTDIR)$(SBINDIR)
install -m 755 $(TOOL) $(DESTDIR)$(SBINDIR)
uninstall: