Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-31 20:06:50 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-31 20:06:50 +0100
commitf379b30a9712be6c847396e5267c5eef3951d978 (patch)
treea57db17f25fa27481eb9f435e52bf3cda97cc34e
parent166b6e7c3c216ca98d26639ebaca9ad2c1a17dbb (diff)
added uninstall make target (handle with care if using PREFIX=/usr!)HEADmaster
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 62e370a..6faa266 100644
--- a/Makefile
+++ b/Makefile
@@ -29,5 +29,17 @@ install-initcpio:
install-doc:
install -vDm 644 $(DOC_FILES) -t $(DOC_DIR)
+
+uninstall: uninstall-initcpio uninstall-doc
-.PHONY: check install install-initcpio install-doc shellcheck shfmt
+uninstall-initcpio:
+ -rm $(addprefix $(HOOKS_DIR)/, $(notdir $(HOOKS_FILES)))
+ -rmdir $(HOOKS_DIR)
+ -rm $(addprefix $(INSTALL_DIR)/, $(notdir $(INSTALL_FILES)))
+ -rmdir $(INSTALL_DIR)
+
+uninstall-doc:
+ -rm $(addprefix $(DOC_DIR)/, $(notdir $(DOC_FILES)))
+ -rmdir $(DOC_DIR)
+
+.PHONY: check install install-initcpio uninstall uninstall-initcpio install-doc shellcheck shfmt