aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-27 03:06:32 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-27 03:06:32 +0100
commit811d253bc2e489e3c05632f04eedb7bc201b88ff (patch)
treed1fb32ef801ef72f6240d3a75585c93540493758 /Makefile
parentc3a1642eade3233a36aae48ff8b27a91027c1c40 (diff)
parent271d3fbdaa92e1db51b704c123d5526cea67e5e3 (diff)
Merge remote-tracking branch 'jaimeMF/makefilePythonversion'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b47433573..7aae2c309 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man
SYSCONFDIR=/etc
+PYTHON=/usr/bin/env python
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
install -d $(DESTDIR)$(BINDIR)
@@ -27,7 +28,7 @@ tar: youtube-dl.tar.gz
youtube-dl: youtube_dl/*.py
zip --quiet youtube-dl youtube_dl/*.py
zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
- echo '#!/usr/bin/env python' > youtube-dl
+ echo '#! $(PYTHON)' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl