diff options
author | Adrian Likins <alikins@redhat.com> | 2009-01-21 15:07:14 -0500 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2009-01-21 15:07:14 -0500 |
commit | 46e4a6e68cacf86f067821cf20027e7a3efe9622 (patch) | |
tree | 29652dee195ff8ee1cea17504ad16787a86f102d | |
parent | 364bfa3f2199cc048162975fed703a8a14625c47 (diff) | |
download | func-46e4a6e68cacf86f067821cf20027e7a3efe9622.tar.gz func-46e4a6e68cacf86f067821cf20027e7a3efe9622.tar.xz func-46e4a6e68cacf86f067821cf20027e7a3efe9622.zip |
make the python executable be a makefile variable
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,6 +1,7 @@ VERSION = $(shell echo `awk '{ print $$1 }' version`) RELEASE = $(shell echo `awk '{ print $$2 }' version`) NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) +PYTHON = /usr/bin/python MESSAGESPOT=po/messages.pot @@ -14,6 +15,7 @@ PYDIRS = func scripts examples funcweb EXAMPLEDIR = examples INITDIR = init-scripts + all: rpms @@ -35,7 +37,7 @@ setversion: -echo "$(VERSION) $(RELEASE)" > version build: clean - python setup.py build -f + $(PYTHON) setup.py build -f clean: -rm -f MANIFEST @@ -46,7 +48,7 @@ clean: -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done clean_hard: - -rm -rf $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/func + -rm -rf $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/func clean_harder: -rm -rf /etc/pki/func @@ -57,7 +59,7 @@ clean_hardest: clean_rpms install: build manpage - python setup.py install -f + $(PYTHON) setup.py install -f install_hard: clean_hard install @@ -78,7 +80,7 @@ clean_rpms: -rpm -e func sdist: messages - python setup.py sdist + $(PYTHON) setup.py sdist new-rpms: bumprelease rpms @@ -93,7 +95,7 @@ money: clean async: install /sbin/service funcd restart sleep 4 - python test/async_test.py + $(PYTHON) test/async_test.py testit: clean -cd test; sh test-it.sh |