Re-order Makefile install and uninstall a bit. Specifically
authormgandalf <mgandalf@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 11 Feb 2009 16:16:53 +0000 (16:16 +0000)
committermgandalf <mgandalf@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 11 Feb 2009 16:16:53 +0000 (16:16 +0000)
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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@670 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scstadmin/Makefile

index 1ffccd2..cc9c2fb 100644 (file)
@@ -4,17 +4,17 @@ TOOL = scstadmin
 all: perl-module
 
 install:
 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 $(TOOL) /usr/local/sbin
        install -m 755 init.d/scst /etc/init.d
-       /usr/lib/lsb/install_initd scst
        install -m 755 init.d/qla2x00t /etc/init.d
        install -m 755 init.d/qla2x00t /etc/init.d
+       /usr/lib/lsb/install_initd scst
        /usr/lib/lsb/install_initd qla2x00t
        /usr/lib/lsb/install_initd qla2x00t
-       $(MAKE) -C scst-$(MODULE_VERSION) install
 
 uninstall:
        -/usr/lib/lsb/remove_initd qla2x00t
 
 uninstall:
        -/usr/lib/lsb/remove_initd qla2x00t
-       -rm -f /etc/init.d/qla2x00t
        -/usr/lib/lsb/remove_initd scst
        -/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
        -rm -f /etc/init.d/scst
        -rm -f /usr/local/sbin/$(TOOL)
        $(MAKE) -C scst-$(MODULE_VERSION) uninstall