From d4b03b53af6aa4c146b027cd5dd4d5759f4a7b69 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Sun, 2 Feb 2014 15:10:17 +0100 Subject: [PATCH] make: Make shebang line overrideable --- Makefile | 2 +- lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 45d4ab9..ed8cdcd 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ MANFILE = svtplay-dl.1$(MANFILE_EXT) POD2MAN ?= pod2man --section 1 --utf8 -c "svtplay-dl manual" \ -r "svtplay-dl $(VERSION)" -PYTHON = /usr/bin/env python +PYTHON ?= /usr/bin/env python export PYTHONPATH=lib # Disable convention, refactor, and TODO warnings diff --git a/lib/Makefile b/lib/Makefile index 1f20c48..4542446 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -10,7 +10,7 @@ export PACKAGES = svtplay_dl \ svtplay_dl.service export PYFILES = $(addsuffix /*.py,$(subst .,/,$(PACKAGES))) -PYTHON = /usr/bin/env python +PYTHON ?= /usr/bin/env python svtplay-dl: $(PYFILES) zip --quiet svtplay-dl $(PYFILES)