From 26940b9f291dd8ee6aa9daa5e7801289aec77c85 Mon Sep 17 00:00:00 2001 From: Mirsal Date: Sun, 5 Feb 2017 15:09:04 +0000 Subject: [PATCH] Makefile: Add missing uninstall target --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 9d1ddc9d1..0c0dd1a90 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,18 @@ install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtu install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish +uninstall: + rm -v -f $(DESTDIR)$(BINDIR)/youtube-dl + rmdir -p $(DESTDIR)$(BINDIR) || true + rm -v -f $(DESTDIR)$(MANDIR)/man1/youtube-dl.1 + rmdir -p $(DESTDIR)$(MANDIR)/man1 || true + rm -v -f $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl + rmdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d || true + rm -v -f $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl/youtube-dl.zsh + rmdir -p $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl || true + rm -v -f $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish + rmdir -p $(DESTDIR)$(SYSCONFDIR)/fish/completions || true + codetest: flake8 .