aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxSlendiX <gamingxslendix@gmail.com>2021-09-08 01:49:41 +0300
committerxSlendiX <gamingxslendix@gmail.com>2021-09-08 01:49:41 +0300
commit39e1542466dab800499594534c4abd4ea8489bab (patch)
tree59338bc35089cba54f01f1eb7ff00da8d7aab26e
parentaf258658c18603a231e1cd4c0b933beb2ab1fd22 (diff)
Add uninstall target
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3214fe8..69ddaa3 100644
--- a/Makefile
+++ b/Makefile
@@ -14,3 +14,10 @@ else
chmod 4711 /usr/bin/sus
endif
+uninstall: clean
+ifneq ($(shell id -u), 0)
+ @echo "You must be root to perform this action."
+else
+ rm -f /usr/bin/sus
+endif
+