diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2011-10-29 17:47:39 +0200 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2011-10-29 17:47:39 +0200 |
commit | 7eb4e706de61db653584926daf4ef80778ff331b (patch) | |
tree | 7201410ea3b44fe8e4fec8f8fae2579a8301866b | |
parent | 5fc31cba870c1a0d8924638089b71a42278a1c6a (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |