From 4d7a0a92de20cf129dbb40c419e7362de447600c Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 6 Aug 2013 17:52:12 +0900 Subject: Separate environment intialisation into its own build target Initialisation of the virtualenv is now a separate target, which is a dependency of the package installation target. Change-Id: I37cc6a13bb3874439393b75b8926f2288700d692 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a920c28..456f48d 100644 --- a/Makefile +++ b/Makefile @@ -50,12 +50,14 @@ unittests: envsetup source ./pygerritenv/bin/activate && \ python unittests.py" -envsetup: +envsetup: envinit bash -c "\ - [ -e ./pygerritenv/bin/activate ] || virtualenv ./pygerritenv && \ source ./pygerritenv/bin/activate && \ pip install --upgrade -r requirements.txt -r test_requirements.txt" +envinit: + bash -c "[ -e ./pygerritenv/bin/activate ] || virtualenv ./pygerritenv" + clean: @find . -type f -name "*.pyc" -exec rm -f {} \; @rm -rf pygerritenv pygerrit.egg-info build dist -- cgit v1.2.1