Files
scst/scstadmin/Makefile
Mark Buechler 36db05162a Re-order Makefile install and uninstall a bit. Specifically
for the install so lsb commands come last should lsb not exist
on the system, at least the rest of install works.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@670 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 16:16:53 +00:00

36 lines
824 B
Makefile

MODULE_VERSION = 0.7.4
TOOL = scstadmin
all: perl-module
install:
$(MAKE) -C scst-$(MODULE_VERSION) install
install -m 755 $(TOOL) /usr/local/sbin
install -m 755 init.d/scst /etc/init.d
install -m 755 init.d/qla2x00t /etc/init.d
/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 /etc/init.d/qla2x00t
-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