]> jfr.im git - yt-dlp.git/commitdiff
[build] `make tar' should not follow `DESTDIR` (#4790)
authorsatan1st <redacted>
Thu, 1 Sep 2022 11:16:17 +0000 (13:16 +0200)
committerGitHub <redacted>
Thu, 1 Sep 2022 11:16:17 +0000 (16:46 +0530)
Ref: https://www.gnu.org/prep/standards/html_node/DESTDIR.html
Authored by: satan1st

Makefile

index d6a00d332b4fbb8753ef77d65e55df6d07da5933..6cb9e2f57eb9535db13272c9554fa7a1cadde6b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,6 @@ completion-zsh: completions/zsh/_yt-dlp
 lazy-extractors: yt_dlp/extractor/lazy_extractors.py
 
 PREFIX ?= /usr/local
-DESTDIR ?= .
 BINDIR ?= $(PREFIX)/bin
 MANDIR ?= $(PREFIX)/man
 SHAREDIR ?= $(PREFIX)/share
@@ -134,7 +133,7 @@ yt_dlp/extractor/lazy_extractors.py: devscripts/make_lazy_extractors.py devscrip
        $(PYTHON) devscripts/make_lazy_extractors.py $@
 
 yt-dlp.tar.gz: all
-       @tar -czf $(DESTDIR)/yt-dlp.tar.gz --transform "s|^|yt-dlp/|" --owner 0 --group 0 \
+       @tar -czf yt-dlp.tar.gz --transform "s|^|yt-dlp/|" --owner 0 --group 0 \
                --exclude '*.DS_Store' \
                --exclude '*.kate-swp' \
                --exclude '*.pyc' \