From: Zooko O'Whielacronx Date: Mon, 21 Jul 2008 16:28:49 +0000 (-0700) Subject: setup: don't use "python" in Makefile, use $(PYTHON) everywhere X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv.html?a=commitdiff_plain;h=1a629042891878c7cbe19e9381d88c3a39148270;p=tahoe-lafs%2Ftahoe-lafs.git setup: don't use "python" in Makefile, use $(PYTHON) everywhere --- diff --git a/Makefile b/Makefile index 44bbd979..280f7864 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ default: build PYTHON=python -PATHSEP=$(shell python -c 'import os ; print os.pathsep') -OSSEP=$(shell python -c 'import os ; print os.sep') +PATHSEP=$(shell $(PYTHON) -c 'import os ; print os.pathsep') +OSSEP=$(shell $(PYTHON) -c 'import os ; print os.sep') REACTOR= @@ -16,7 +16,7 @@ ifneq ($(LIBRARY_DIRS),) LIBRARY_DIRS_ARG = -L$(LIBRARY_DIRS) endif -PLAT = $(strip $(shell python -c "import sys ; print sys.platform")) +PLAT = $(strip $(shell $(PYTHON) -c "import sys ; print sys.platform")) ifeq ($(PLAT),win32) # The platform is Windows with cygwin build tools and the native Python interpreter. SUPPORT = $(shell cygpath -w $(shell pwd))\support @@ -263,7 +263,7 @@ check-grid: .built # 'make repl' is a simple-to-type command to get a Python interpreter loop # from which you can type 'import allmydata' repl: - $(PP) python + $(PP) $(PYTHON) test-darcs-boringfile: $(MAKE)