From c7cb8bec38abe598a01667dcb7a009204d5fa12d Mon Sep 17 00:00:00 2001 From: Connor Kuehl Date: Thu, 15 Apr 2021 19:14:40 -0500 Subject: [PATCH] Add uninstall target --- Makefile | 8 +++++++- README.md | 4 ++++ diff --git a/Makefile b/Makefile index fb200086d94ac4b4fc898d0f454b5ae0f760707c..77b5a431eeb462145b909b2e2b2f6e77f03b1fe2 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,13 @@ install -m644 scdoc.1 $(DESTDIR)/$(MANDIR)/man1/scdoc.1 install -m644 scdoc.5 $(DESTDIR)/$(MANDIR)/man5/scdoc.5 install -m644 scdoc.pc $(DESTDIR)/$(PCDIR)/scdoc.pc +uninstall: + rm -f $(DESTDIR)/$(BINDIR)/scdoc + rm -f $(DESTDIR)/$(MANDIR)/man1/scdoc.1 + rm -f $(DESTDIR)/$(MANDIR)/man5/scdoc.5 + rm -f $(DESTDIR)/$(PCDIR)/scdoc.pc + check: scdoc scdoc.1 scdoc.5 @find test -perm -111 -exec '{}' \; -.PHONY: all clean install check +.PHONY: all clean install uninstall check diff --git a/README.md b/README.md index dd8235139d734fc01869b98e72ab7b63326c34f7..735d9e61f6fe729ed58d8b4b1ca4e6961000cd15 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ make PREFIX=/usr sudo make PREFIX=/usr install +Uninstallation is similar: + + sudo make uninstall + ## Usage See scdoc(1) -- 2.48.1