]> jfr.im git - yt-dlp.git/blobdiff - Makefile
[build] Update changelog for tarball and sdist (#9425)
[yt-dlp.git] / Makefile
index 2cfeb78419ad0eb3c37bbb47d51dd7613e3b0314..38c6b4f2dcb2094f92d9b9488c0746c993e1d8d6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ all: lazy-extractors yt-dlp doc pypi-files
 clean: clean-test clean-dist
 clean-all: clean clean-cache
 completions: completion-bash completion-fish completion-zsh
-doc: README.md CONTRIBUTING.md issuetemplates supportedsites
+doc: README.md CONTRIBUTING.md CONTRIBUTORS issuetemplates supportedsites
 ot: offlinetest
 tar: yt-dlp.tar.gz
 
@@ -17,8 +17,8 @@ pypi-files: AUTHORS Changelog.md LICENSE README.md README.txt supportedsites \
 clean-test:
        rm -rf test/testdata/sigs/player-*.js tmp/ *.annotations.xml *.aria2 *.description *.dump *.frag \
        *.frag.aria2 *.frag.urls *.info.json *.live_chat.json *.meta *.part* *.tmp *.temp *.unknown_video *.ytdl \
-       *.3gp *.ape *.ass *.avi *.desktop *.f4v *.flac *.flv *.gif *.jpeg *.jpg *.m4a *.m4v *.mhtml *.mkv *.mov *.mp3 \
-       *.mp4 *.mpga *.oga *.ogg *.opus *.png *.sbv *.srt *.swf *.swp *.tt *.ttml *.url *.vtt *.wav *.webloc *.webm *.webp
+       *.3gp *.ape *.ass *.avi *.desktop *.f4v *.flac *.flv *.gif *.jpeg *.jpg *.lrc *.m4a *.m4v *.mhtml *.mkv *.mov *.mp3 *.mp4 \
+       *.mpg *.mpga *.oga *.ogg *.opus *.png *.sbv *.srt *.ssa *.swf *.swp *.tt *.ttml *.url *.vtt *.wav *.webloc *.webm *.webp
 clean-dist:
        rm -rf yt-dlp.1.temp.md yt-dlp.1 README.txt MANIFEST build/ dist/ .coverage cover/ yt-dlp.tar.gz completions/ \
        yt_dlp/extractor/lazy_extractors.py *.spec CONTRIBUTING.md.tmp yt-dlp yt-dlp.exe yt_dlp.egg-info/ AUTHORS
@@ -156,5 +156,14 @@ yt-dlp.tar.gz: all
                Makefile yt-dlp.1 README.txt completions .gitignore \
                setup.cfg yt-dlp yt_dlp pyproject.toml devscripts test
 
-AUTHORS:
-       git shortlog -s -n HEAD | cut -f2 | sort > AUTHORS
+AUTHORS: Changelog.md
+       @if [ -d '.git' ] && command -v git > /dev/null ; then \
+         echo 'Generating $@ from git commit history' ; \
+         git shortlog -s -n HEAD | cut -f2 | sort > $@ ; \
+       fi
+
+CONTRIBUTORS: Changelog.md
+       @if [ -d '.git' ] && command -v git > /dev/null ; then \
+         echo 'Updating $@ from git commit history' ; \
+         $(PYTHON) devscripts/make_changelog.py -v -c > /dev/null ; \
+       fi