]> jfr.im git - yt-dlp.git/commitdiff
[build] Add `make uninstall` (#3747)
authorMrRawes <redacted>
Mon, 16 May 2022 02:04:27 +0000 (03:04 +0100)
committerGitHub <redacted>
Mon, 16 May 2022 02:04:27 +0000 (19:04 -0700)
Authored by: MrRawes

Makefile

index 7fa4a6d46ca41a52713cb7830b40149820e3b6a4..8ce2e94c5d7878db6d274b123f232c43e35454c0 100644 (file)
--- 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 .