summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2013-03-10 15:20:38 -0700
committerMichael DeHaan <michael.dehaan@gmail.com>2013-03-10 15:20:38 -0700
commite5f5d354cf633182b886b68dfe977e18b9ad3c17 (patch)
treebed41ee0675062bbc3789c01093173f01b8518a3 /Makefile
parentc4aa72f1fde95adbf4614cb879518954b6e8ad76 (diff)
parent785068df63dcb398b5b67663827d30ba26daf560 (diff)
downloadansible-e5f5d354cf633182b886b68dfe977e18b9ad3c17.tar.gz
Merge pull request #2278 from jcftang/devel
Teach makefile to accept different versions of python
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c712467348..a66f5b1e85 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,8 @@ else
ASCII2MAN = @echo "ERROR: AsciiDoc 'a2x' command is not installed but is required to build $(MANPAGES)" && exit 1
endif
-SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
+PYTHON=python
+SITELIB = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
# VERSION file provides one place to update the software version
VERSION := $(shell cat VERSION)
@@ -118,13 +119,13 @@ clean:
rm -rf docs/js
python:
- python setup.py build
+ $(PYTHON) setup.py build
install:
- python setup.py install
+ $(PYTHON) setup.py install
sdist: clean docs
- python setup.py sdist -t MANIFEST.in
+ $(PYTHON) setup.py sdist -t MANIFEST.in
rpmcommon: sdist
@mkdir -p rpm-build