]>
Commit | Line | Data |
---|---|---|
a9d2f7e8 | 1 | all: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-completion |
4618f3da | 2 | |
85f76ac9 | 3 | clean: |
434eb6f2 PH |
4 | rm -rf youtube-dl.1 youtube-dl.bash-completion README.txt MANIFEST build/ dist/ .coverage cover/ youtube-dl.tar.gz |
5 | ||
6 | cleanall: clean | |
7 | rm -f youtube-dl youtube-dl.exe | |
4618f3da | 8 | |
0e841bdc | 9 | PREFIX=/usr/local |
e79e8b7d TM |
10 | BINDIR=$(PREFIX)/bin |
11 | MANDIR=$(PREFIX)/man | |
12 | SYSCONFDIR=/etc | |
271d3fbd | 13 | PYTHON=/usr/bin/env python |
e79e8b7d | 14 | |
dce10884 | 15 | install: youtube-dl youtube-dl.1 youtube-dl.bash-completion |
e79e8b7d TM |
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 | |
dce10884 | 22 | |
a7b5c8d6 | 23 | test: |
fedb6816 FV |
24 | #nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test |
25 | nosetests --verbose test | |
a7b5c8d6 | 26 | |
039dc61b PH |
27 | tar: youtube-dl.tar.gz |
28 | ||
434eb6f2 PH |
29 | .PHONY: all clean install test tar bash-completion pypi-files |
30 | ||
31 | pypi-files: youtube-dl.bash-completion README.txt youtube-dl.1 | |
dce10884 FV |
32 | |
33 | youtube-dl: youtube_dl/*.py | |
20ba0426 FV |
34 | zip --quiet youtube-dl youtube_dl/*.py |
35 | zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py | |
c67598c3 | 36 | echo '#!$(PYTHON)' > youtube-dl |
dce10884 FV |
37 | cat youtube-dl.zip >> youtube-dl |
38 | rm youtube-dl.zip | |
85f76ac9 | 39 | chmod a+x youtube-dl |
dce10884 | 40 | |
646b885c | 41 | README.md: youtube_dl/*.py |
4bb028f4 | 42 | COLUMNS=80 python -m youtube_dl --help | python devscripts/make_readme.py |
4618f3da | 43 | |
cc51a7d4 | 44 | README.txt: README.md |
4bb028f4 | 45 | pandoc -f markdown -t plain README.md -o README.txt |
cc51a7d4 | 46 | |
dce10884 | 47 | youtube-dl.1: README.md |
a5741a3f | 48 | pandoc -s -f markdown -t man README.md -o youtube-dl.1 |
cfcec693 | 49 | |
a4680a59 | 50 | youtube-dl.bash-completion: youtube_dl/*.py devscripts/bash-completion.in |
4c1d273e | 51 | python devscripts/bash-completion.py |
23109d6a | 52 | |
434eb6f2 PH |
53 | bash-completion: youtube-dl.bash-completion |
54 | ||
6dd34719 | 55 | youtube-dl.tar.gz: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-completion |
814eed0e | 56 | @tar -czf youtube-dl.tar.gz --transform "s|^|youtube-dl/|" --owner 0 --group 0 \ |
039dc61b PH |
57 | --exclude '*.DS_Store' \ |
58 | --exclude '*.kate-swp' \ | |
59 | --exclude '*.pyc' \ | |
60 | --exclude '*.pyo' \ | |
61 | --exclude '*~' \ | |
62 | --exclude '__pycache' \ | |
814eed0e PH |
63 | --exclude '.git' \ |
64 | -- \ | |
65 | bin devscripts test youtube_dl \ | |
66 | CHANGELOG LICENSE README.md README.txt \ | |
6dd34719 | 67 | Makefile MANIFEST.in youtube-dl.1 youtube-dl.bash-completion setup.py \ |
814eed0e | 68 | youtube-dl |