From: Jaime Marquínez Ferrándiz Date: Fri, 25 Jan 2013 14:11:03 +0000 (+0100) Subject: Option in makefile to select python interpreter X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=271d3fbdaa92e1db51b704c123d5526cea67e5e3;p=youtube-dl Option in makefile to select python interpreter --- 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