mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-16 10:11:28 +00:00
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
39 lines
947 B
Makefile
39 lines
947 B
Makefile
MODULE_VERSION = 0.7.4
|
|
TOOL = scstadmin
|
|
|
|
SBINDIR := $(PREFIX)/usr/local/sbin
|
|
INITDIR := $(PREFIX)/etc/init.d
|
|
|
|
all: perl-module
|
|
|
|
install:
|
|
$(MAKE) -C scst-$(MODULE_VERSION) install
|
|
install -m 755 $(TOOL) $(DISTDIR)$(SBINDIR)
|
|
install -m 755 init.d/scst $(DISTDIR)$(INITDIR)
|
|
install -m 755 init.d/qla2x00t $(DISTDIR)$(INITDIR)
|
|
/usr/lib/lsb/install_initd scst
|
|
/usr/lib/lsb/install_initd qla2x00t
|
|
|
|
uninstall:
|
|
-/usr/lib/lsb/remove_initd qla2x00t
|
|
-/usr/lib/lsb/remove_initd scst
|
|
-rm -f $(DISTDIR)$(PATH_INITD)/qla2x00t
|
|
-rm -f $(DISTDIR)$(PATH_INITD)/scst
|
|
-rm -f $(DISTDIR)$(PATH_SBIN)/$(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
|
|
|
|
extraclean: distclean
|
|
|
|
.PHONY: all install uninstall perl-module clean distclean extraclean
|