Option in makefile to select python interpreter

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-01-25 15:11:03 +01:00
parent 6df40dcbe0
commit 271d3fbdaa
1 changed files with 2 additions and 1 deletions

View File

@ -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