aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMrRawes <MrRawes@proton.me>2022-05-16 03:04:27 +0100
committerGitHub <noreply@github.com>2022-05-15 19:04:27 -0700
commitb4d373833856ef464e0c7c197d0f0581f34e0efe (patch)
tree5cbc0e7f6282849507119606e9bbccc5f4128db9
parent3ac7b66047f6bae8bfc9d1a9bfd0b9304b97c296 (diff)
downloadhypervideo-pre-b4d373833856ef464e0c7c197d0f0581f34e0efe.tar.lz
hypervideo-pre-b4d373833856ef464e0c7c197d0f0581f34e0efe.tar.xz
hypervideo-pre-b4d373833856ef464e0c7c197d0f0581f34e0efe.zip
[build] Add `make uninstall` (#3747)
Authored by: MrRawes
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7fa4a6d46..8ce2e94c5 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 .