1 all: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-completion
4 rm -rf youtube-dl.1 youtube-dl.bash-completion README.txt MANIFEST build/ dist/ .coverage cover/ youtube-dl.tar.gz
7 rm -f youtube-dl youtube-dl.exe
13 PYTHON=/usr/bin/env python
15 install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
16 install -d $(DESTDIR)$(BINDIR)
17 install -m 755 youtube-dl $(DESTDIR)$(BINDIR)
18 install -d $(DESTDIR)$(MANDIR)/man1
19 install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1
20 install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
21 install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl
24 #nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
25 nosetests --verbose test
27 tar: youtube-dl.tar.gz
29 .PHONY: all clean install test tar bash-completion pypi-files
31 pypi-files: youtube-dl.bash-completion README.txt youtube-dl.1
33 youtube-dl: youtube_dl/*.py
34 zip --quiet youtube-dl youtube_dl/*.py
35 zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
36 echo '#!$(PYTHON)' > youtube-dl
37 cat youtube-dl.zip >> youtube-dl
41 README.md: youtube_dl/*.py
42 COLUMNS=80 python -m youtube_dl --help | python devscripts/make_readme.py
45 pandoc -f markdown -t plain README.md -o README.txt
47 youtube-dl.1: README.md
48 pandoc -s -f markdown -t man README.md -o youtube-dl.1
50 youtube-dl.bash-completion: youtube_dl/*.py devscripts/bash-completion.in
51 python devscripts/bash-completion.py
53 bash-completion: youtube-dl.bash-completion
55 youtube-dl.tar.gz: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-completion
56 @tar -czf youtube-dl.tar.gz --transform "s|^|youtube-dl/|" --owner 0 --group 0 \
57 --exclude '*.DS_Store' \
58 --exclude '*.kate-swp' \
62 --exclude '__pycache' \
65 bin devscripts test youtube_dl \
66 CHANGELOG LICENSE README.md README.txt \
67 Makefile MANIFEST.in youtube-dl.1 youtube-dl.bash-completion setup.py \