kalasag.org

kalasag.org

Git

This commit has been accessed 130 times via Git panel.

commit b51a6a978a795acdeb22268a7f14a265f666a3eb
tree 3ca36126406b01435c65ffcfcdca4831fd3b869b
parent 8b2d801fab0c5f4272e5972e58af812f8b13e9a9
author Engels Antonio <engels@kalasag.org> 1639242009 +0800
committer Engels Antonio <engels@kalasag.org> 1639242009 +0800

    Improve make uninstall

diff --git a/Makefile b/Makefile
index c9733b5..4366ee1 100644
--- a/Makefile
+++ b/Makefile
@@ -61,11 +61,8 @@ clean:
                /bin/rm ./kalasag
 
 uninstall:    
-               /bin/systemctl stop kalasag.service
-               /bin/systemctl disable kalasag.service
-               /bin/rm /usr/lib/systemd/system/kalasag.service
-               /bin/rm $(INSTALLDIR)$(CHILDDIR)/*
-               /bin/rmdir $(INSTALLDIR)$(CHILDDIR)
+               @if [ -f /usr/lib/systemd/system/kalasag.service ]; then systemctl stop kalasag.service; systemctl disable kalasag.service; rm -f /usr/lib/systemd/system/kalasag.service; fi
+               @if [ -d $(INSTALLDIR)$(CHILDDIR) ]; then rm -rf $(INSTALLDIR)$(CHILDDIR)/*; fi
 
 install:      
                @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then mkdir -p $(INSTALLDIR)$(CHILDDIR); fi
 
filedropkalasag.git-1c9f013.tar.bz2 new
20.95 KB
41 downloads
filedropkalasag.git-1c9f013.zip
25.81 KB
5 downloads
filedropkalasag.git-3ca3612.tar.bz2
20.80 KB
9 downloads
filedropkalasag.git-3ca3612.zip
25.66 KB
5 downloads
filedropkalasag.git-2ffeaa6.tar.bz2
20.80 KB
13 downloads
filedropkalasag.git-2ffeaa6.zip
25.65 KB
6 downloads
filedropkalasag.git-2834a11.tar.bz2
20.84 KB
251 downloads
filedropkalasag.git-2834a11.zip
25.72 KB
130 downloads
filedropkalasag.git-afd7b31.tar.bz2
20.84 KB
185 downloads
filedropkalasag.git-afd7b31.zip
25.71 KB
86 downloads
filedropkalasag.git-97c89e1.tar.bz2
20.82 KB
267 downloads
filedropkalasag.git-97c89e1.zip
25.68 KB
184 downloads
filedropkalasag.git-1141d13.tar.bz2
20.65 KB
810 downloads
filedropkalasag.git-1141d13.zip
25.37 KB
178 downloads
filedropkalasag.git-ee3c17b.tar.bz2
20.65 KB
781 downloads
filedropkalasag.git-ee3c17b.zip
25.34 KB
172 downloads
filedropkalasag.git-4032c54.tar.bz2
20.63 KB
269 downloads
filedropkalasag.git-4032c54.zip
25.13 KB
189 downloads
filedropkalasag.git-e51a2a6.tar.bz2
20.65 KB
269 downloads
filedropkalasag.git-e51a2a6.zip
25.13 KB
159 downloads
filedropkalasag.git-599c93a.tar.bz2
20.63 KB
260 downloads
filedropkalasag.git-599c93a.zip
25.11 KB
1,485 downloads
filedropkalasag.git-acdc640.tar.bz2
20.63 KB
248 downloads
filedropkalasag.git-acdc640.zip
25.10 KB
173 downloads