[PATCH] Makefile: Add uninstall rule
Export this patch
---
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.30.0
Pushed, thanks!