-youtube-dl.exe: youtube_dl/*.py
- bash devscripts/wine-py2exe.sh build_exe.py
-
-README.md: youtube_dl/*.py
- @options=$$(COLUMNS=80 python -m youtube_dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/## \1/') && \
- header=$$(sed -e '/.*# OPTIONS/,$$ d' README.md) && \
- footer=$$(sed -e '1,/.*# CONFIGURATION/ d' README.md) && \
- echo "$${header}" > README.md && \
- echo >> README.md && \
- echo '# OPTIONS' >> README.md && \
- echo "$${options}" >> README.md&& \
- echo >> README.md && \
- echo '# CONFIGURATION' >> README.md && \
- echo "$${footer}" >> README.md
+README.md: youtube_dl/*.py youtube_dl/*/*.py
+ COLUMNS=80 python youtube_dl/__main__.py --help | python devscripts/make_readme.py
+
+CONTRIBUTING.md: README.md
+ python devscripts/make_contributing.py README.md CONTRIBUTING.md
+
+supportedsites:
+ python devscripts/make_supportedsites.py docs/supportedsites.md
+
+README.txt: README.md
+ pandoc -f markdown -t plain README.md -o README.txt