mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-04 08:11:25 +02:00
Compare commits
8 Commits
e0cb758d6c
...
b5e544f1ee
Author | SHA1 | Date | |
---|---|---|---|
|
b5e544f1ee | ||
|
fb44020fa9 | ||
|
28d1f7bc77 | ||
|
1cc15be334 | ||
|
692b094883 | ||
|
5278604f6b | ||
|
43e1cef431 | ||
|
498ac3de4b |
11
Makefile
11
Makefile
|
@ -38,7 +38,10 @@ MANDIR ?= $(PREFIX)/man
|
|||
SHAREDIR ?= $(PREFIX)/share
|
||||
PYTHON ?= /usr/bin/env python3
|
||||
|
||||
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2
|
||||
# $(shell) is a no-op in BSD Make and the != variable assignment operator is not supported by GNU Make <4.0
|
||||
ERROR_MSG := $(shell if [ "`echo $(MAKE_VERSION) | head -c1`" -lt "4" ] ; then echo "GNU Make 4+ or BSD Make is required" ; fi)
|
||||
|
||||
# set markdown input format to "markdown-smart" for pandoc version 2+ and to "markdown" for pandoc prior to version 2
|
||||
MARKDOWN != if [ "`pandoc -v | head -n1 | cut -d' ' -f2 | head -c1`" -ge "2" ]; then echo markdown-smart; else echo markdown; fi
|
||||
|
||||
install: lazy-extractors yt-dlp yt-dlp.1 completions
|
||||
|
@ -73,8 +76,7 @@ offlinetest: codetest
|
|||
CODE_FOLDERS != find yt_dlp -type f -name '__init__.py' -exec dirname {} \+ | grep -v '/__' | sort
|
||||
CODE_FILES != for f in $(CODE_FOLDERS) ; do echo $$f | sed 's,$$,/*.py,' ; done
|
||||
yt-dlp: $(CODE_FILES)
|
||||
@echo code_folders: '$(CODE_FOLDERS)'
|
||||
@echo code_files: '$(CODE_FILES)'
|
||||
@echo $(ERROR_MSG)
|
||||
mkdir -p zip
|
||||
for d in $(CODE_FOLDERS) ; do \
|
||||
mkdir -p zip/$$d ;\
|
||||
|
@ -107,9 +109,11 @@ supportedsites:
|
|||
$(PYTHON) devscripts/make_supportedsites.py supportedsites.md
|
||||
|
||||
README.txt: README.md
|
||||
@echo $(ERROR_MSG)
|
||||
pandoc -f $(MARKDOWN) -t plain README.md -o README.txt
|
||||
|
||||
yt-dlp.1: README.md devscripts/prepare_manpage.py
|
||||
@echo $(ERROR_MSG)
|
||||
$(PYTHON) devscripts/prepare_manpage.py yt-dlp.1.temp.md
|
||||
pandoc -s -f $(MARKDOWN) -t man yt-dlp.1.temp.md -o yt-dlp.1
|
||||
rm -f yt-dlp.1.temp.md
|
||||
|
@ -140,6 +144,7 @@ yt-dlp.tar.gz: all
|
|||
--exclude '__pycache__' \
|
||||
--exclude '.pytest_cache' \
|
||||
--exclude '.git' \
|
||||
--exclude '__pyinstaller' \
|
||||
-- \
|
||||
README.md supportedsites.md Changelog.md LICENSE \
|
||||
CONTRIBUTING.md Collaborators.md CONTRIBUTORS AUTHORS \
|
||||
|
|
Loading…
Reference in New Issue
Block a user