Files
scst/scstadmin/Makefile
Vladislav Bolkhovitin 5cfcd159d4 Minor scstadmin-related improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-17 17:56:57 +00:00

34 lines
755 B
Makefile

MODULE_VERSION = 0.7.4
TOOL = scstadmin
all: perl-module
install:
install -m 755 $(TOOL) /usr/local/sbin
install -m 755 init.d/scst /etc/init.d
$(MAKE) -C scst-$(MODULE_VERSION) install
@echo
@echo "The SCST init file has been installed in /etc/init.d,"
@echo "be sure to enable it with your favorite SysV init editor."
@echo
uninstall:
-rm -f /etc/init.d/scst
-rm -f /usr/local/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