From e96ed65782e4be830a92d19d68ee1061f2444fea Mon Sep 17 00:00:00 2001 From: noctuid Date: Wed, 11 Nov 2015 15:46:59 -0500 Subject: [PATCH] Add uninstall section to Makefile and update vars --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 78f8b2b..fd1c191 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,12 @@ +PREFIX ?= /usr/local +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man + install: - install -D tdrop $(DESTDIR)/usr/bin/tdrop - install -D -m 644 tdrop.groff $(DESTDIR)/usr/share/man/man1/tdrop.1 + # 755 is default + install -D -m 755 tdrop "$(DESTDIR)$(BINDIR)" + install -D -m 644 tdrop.groff "$(DESTDIR)$(MANDIR)"/man1/tdrop.1 + +uninstall: + rm -f "$(DESTDIR)$(BINDIR)"/tdrop + rf -rf "$(DESTDIR)$(MANDIR)"