summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-01-06 23:02:31 +0100
committerPhilipp Hagemeister <[email protected]>2013-01-06 23:02:31 +0100
commit039dc61bd2a7ca8a1716ce57e9d4c8f80fbc8aee (patch)
tree3a3c7596c2727aea08c7d57d22be9da31bdf68e7 /Makefile
parent4b879984eacbb5b6d19e2a9e8627953d51caa8b2 (diff)
downloadyoutube-dl-039dc61bd2a7ca8a1716ce57e9d4c8f80fbc8aee.tar.gz
youtube-dl-039dc61bd2a7ca8a1716ce57e9d4c8f80fbc8aee.zip
Simplify Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0069e7975..b629304e5 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,9 @@ test:
#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
nosetests --verbose test
-.PHONY: all clean install test
+tar: youtube-dl.tar.gz
+
+.PHONY: all clean install test tar
youtube-dl: youtube_dl/*.py
zip --quiet youtube-dl youtube_dl/*.py
@@ -43,5 +45,22 @@ youtube-dl.bash-completion: youtube_dl/*.py devscripts/bash-completion.in
python devscripts/bash-completion.py
youtube-dl.tar.gz: all
- tar -cvzf youtube-dl.tar.gz -s "|^./|./youtube-dl/|" \
- --exclude-from=".tarignore" -- .
+ @tar -czf youtube-dl.tar.gz --transform "s|^./|./youtube-dl/|" --owner 0 --group 0 \
+ --exclude-vcs \
+ --exclude '*.DS_Store' \
+ --exclude '*.kate-swp' \
+ --exclude '*.pyc' \
+ --exclude '*.pyo' \
+ --exclude '*~' \
+ --exclude '__pycache' \
+ --exclude 'build' \
+ --exclude 'cover' \
+ --exclude '.coverage' \
+ --exclude 'dist' \
+ --exclude 'MANIFEST' \
+ --exclude 'py2exe.log' \
+ --exclude 'updates_key.pem' \
+ --exclude 'wine-py2exe' \
+ --exclude 'youtube-dl.exe' \
+ --exclude 'youtube-dl.tar.gz' \
+ -- .