summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2013-12-07 13:21:09 +0100
committerGiampaolo Rodola' <g.rodola@gmail.com>2013-12-07 13:21:09 +0100
commit5f512ebb90170264ccb38fdefd7e2d286e256093 (patch)
tree480dea995fed7dd4a99a7d4fdcb58a9e5c49e968 /Makefile
parent2b4695bbdcf18a0b9597497713e8634ec051c1b2 (diff)
downloadpsutil-5f512ebb90170264ccb38fdefd7e2d286e256093.tar.gz
Makefile: also take python 2.4 and 2.5 into account
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bd400fb9..a2b1fa7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,17 @@
+# Shortcuts for various tasks.
+
PYTHON=python
all: test
install: clean
- $(PYTHON) setup.py install --user
+ if test $(PYTHON) = python2.4; then \
+ $(PYTHON) setup.py install; \
+ elif test $(PYTHON) = python2.5; then \
+ $(PYTHON) setup.py install; \
+ else \
+ $(PYTHON) setup.py install --user; \
+ fi
test: install
$(PYTHON) test/test_psutil.py