From 9f9884083831ea1f94bdda5151c5df3888932849 Mon Sep 17 00:00:00 2001 From: Merlin Date: Sat, 9 Jan 2021 10:20:50 +0600 Subject: [PATCH] Makefile: Add uninstall rule --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index ce88f4b..b81981b 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,14 @@ install: mrsh libmrsh.so.$(SOVERSION) $(OUTDIR)/mrsh.pc done install -m644 $(OUTDIR)/mrsh.pc $(PCDIR)/mrsh.pc +uninstall: + rm -f $(BINDIR)/mrsh + rm -f $(LIBDIR)/libmrsh.so.$(SOVERSION) + for inc in $(public_includes); do \ + rm -f $(INCDIR)/mrsh/$$(basename $$inc); \ + done + rm -f $(PCDIR)/mrsh.pc + clean: rm -rf \ $(libmrsh_objects) \ -- 2.45.2