From b4d373833856ef464e0c7c197d0f0581f34e0efe Mon Sep 17 00:00:00 2001 From: MrRawes Date: Mon, 16 May 2022 03:04:27 +0100 Subject: [PATCH] [build] Add `make uninstall` (#3747) Authored by: MrRawes --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 7fa4a6d46c..8ce2e94c5d 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,13 @@ install: lazy-extractors yt-dlp yt-dlp.1 completions mkdir -p $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d install -m644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish +uninstall: + rm -f $(DESTDIR)$(BINDIR)/yt-dlp + rm -f $(DESTDIR)$(MANDIR)/man1/yt-dlp.1 + rm -f $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp + rm -f $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_yt-dlp + rm -f $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish + codetest: flake8 .