diff options
author | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-11-30 20:25:56 +0000 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-11-30 20:25:56 +0000 |
commit | 973e3ec1494fcc7e9d2ce60f4646a2f2d5f5e0c5 (patch) | |
tree | 7215e3e2fe9787fdacb2494787fadcebaf22fb20 | |
parent | 98f07ecbd4ec055c93cf769adcaf65d689d959f9 (diff) | |
download | rabbitmq-server-973e3ec1494fcc7e9d2ce60f4646a2f2d5f5e0c5.tar.gz |
Try harder to find a simplejson-supporting python
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -15,7 +15,20 @@ TARGETS=$(EBIN_DIR)/rabbit.app $(BEAM_TARGETS) WEB_URL=http://stage.rabbitmq.com/ MANPAGES=$(patsubst %.pod, %.gz, $(wildcard docs/*.[0-9].pod)) +ifeq ($(shell python -c 'import simplejson' 2>/dev/null && echo yes),yes) PYTHON=python +else +ifeq ($(shell python2.6 -c 'import simplejson' 2>/dev/null && echo yes),yes) +PYTHON=python2.6 +else +ifeq ($(shell python2.5 -c 'import simplejson' 2>/dev/null && echo yes),yes) +PYTHON=python2.5 +else +# Hmm. Missing simplejson? +PYTHON=python +endif +endif +endif BASIC_PLT=basic.plt RABBIT_PLT=rabbit.plt |