aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2015-04-27 16:15:54 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2015-04-27 16:15:54 +0200
commite95475d492ea4e08ebc9b99e1851861df1eb83c0 (patch)
tree8971c13d1be5bb1eec59b2f2692286e8bb104120 /Makefile
parentd0de4c4bbc8d495f0dc6d4023f096e00118b3d0e (diff)
downloadfactory-boy-e95475d492ea4e08ebc9b99e1851861df1eb83c0.tar
factory-boy-e95475d492ea4e08ebc9b99e1851861df1eb83c0.tar.gz
Simpler way to define version names.
Avoid hitting bugs with max shebang line length in jenkins.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 9841b31..8883015 100644
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,16 @@ DOC_DIR=docs
COVERAGE = python $(shell which coverage)
# Dependencies
-DJANGO_VERSION ?= 1.8
-NEXT_DJANGO_VERSION = $(shell python -c "v='$(DJANGO_VERSION)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
+DJANGO ?= 1.8
+NEXT_DJANGO = $(shell python -c "v='$(DJANGO)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
-ALCHEMY_VERSION ?= 1.0
-NEXT_ALCHEMY_VERSION = $(shell python -c "v='$(ALCHEMY_VERSION)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
+ALCHEMY ?= 1.0
+NEXT_ALCHEMY = $(shell python -c "v='$(ALCHEMY)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
-MONGOENGINE_VERSION ?= 0.9
-NEXT_MONGOENGINE_VERSION = $(shell python -c "v='$(MONGOENGINE_VERSION)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
+MONGOENGINE ?= 0.9
+NEXT_MONGOENGINE = $(shell python -c "v='$(MONGOENGINE)'; parts=v.split('.'); parts[-1]=str(int(parts[-1])+1); print('.'.join(parts))")
-REQ_FILE = auto_dev_requirements_django$(DJANGO_VERSION)_alchemy$(ALCHEMY_VERSION)_mongoengine$(MONGOENGINE_VERSION).txt
+REQ_FILE = auto_dev_requirements_django$(DJANGO)_alchemy$(ALCHEMY)_mongoengine$(MONGOENGINE).txt
all: default
@@ -30,9 +30,9 @@ install-deps: $(REQ_FILE)
$(REQ_FILE): dev_requirements.txt requirements.txt
grep --no-filename "^[^#-]" $^ | egrep -v "^(Django|SQLAlchemy|mongoengine)" > $@
- echo "Django>=$(DJANGO_VERSION),<$(NEXT_DJANGO_VERSION)" >> $@
- echo "SQLAlchemy>=$(ALCHEMY_VERSION),<$(NEXT_ALCHEMY_VERSION)" >> $@
- echo "mongoengine>=$(MONGOENGINE_VERSION),<$(NEXT_MONGOENGINE_VERSION)" >> $@
+ echo "Django>=$(DJANGO),<$(NEXT_DJANGO)" >> $@
+ echo "SQLAlchemy>=$(ALCHEMY),<$(NEXT_ALCHEMY)" >> $@
+ echo "mongoengine>=$(MONGOENGINE),<$(NEXT_MONGOENGINE)" >> $@
clean: