Added the removal of /etc/init.d/breezed.sh in the uninstall rule.
[breezed.git] / Makefile
index 320c4b5..624d723 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,8 @@ install: breezed /etc/breezed.conf
        install -m 755 breezed $(BINARY_PATH)
        install -m 755 breezed.sh /etc/init.d/
        install -m 644 breezed.1 $(MAN_PATH)
-       install -m 755 breezed-pm-utils.sh $(PM_SLEEPD)/50breezed
        gzip $(MAN_PATH)/breezed.1
+       install -m 755 breezed-pm-utils.sh $(PM_SLEEPD)/50breezed
        update-rc.d breezed.sh defaults
        /etc/init.d/breezed.sh start
 
@@ -41,6 +41,7 @@ uninstall:
        update-rc.d -f breezed.sh remove
        rm $(PM_SLEEPD)/50breezed
        rm $(MAN_PATH)/breezed.1.gz
+       rm /etc/init.d/breezed.sh
        rm $(BINARY_PATH)/breezed
 
 clean: