summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2011-10-29 17:47:39 +0200
committerAlex Merry <dev@randomguy3.me.uk>2011-10-29 17:47:39 +0200
commit7eb4e706de61db653584926daf4ef80778ff331b (patch)
tree7201410ea3b44fe8e4fec8f8fae2579a8301866b
parent5fc31cba870c1a0d8924638089b71a42278a1c6a (diff)
Fall back to "python2" if "python" is Python 3
Required on ArchLinux, for example. This way the user does not have to override PYTHON manually.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28c0687..49d6061 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all:
INSTALL = install
-PYTHON = python
+PYTHON = $(shell if python --version 2>/dev/null | grep "Python 3" >/dev/null 2>/dev/null; then echo python; else echo python2; fi)
EGREP = egrep
XMLS = $(wildcard spec/*.xml)