Compare commits

..

No commits in common. "b5e544f1eed14899002d8420f15dbf9dd8e59ce5" and "e0cb758d6cb3be72788411d794b7e5b915da6c58" have entirely different histories.

View File

@ -38,10 +38,7 @@ MANDIR ?= $(PREFIX)/man
SHAREDIR ?= $(PREFIX)/share
PYTHON ?= /usr/bin/env python3
# $(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
# 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
@ -76,7 +73,8 @@ 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 $(ERROR_MSG)
@echo code_folders: '$(CODE_FOLDERS)'
@echo code_files: '$(CODE_FILES)'
mkdir -p zip
for d in $(CODE_FOLDERS) ; do \
mkdir -p zip/$$d ;\
@ -109,11 +107,9 @@ 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
@ -144,7 +140,6 @@ 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 \