summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9745818..35a0028 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,9 @@
#
VENV_DIR='.venv'
-VENV_DIR3='.venv3'
+VENV_CMD=virtualenv
+VENV_PREFIX=.
+VENV_DIR3=${VENV_PREFIX}/.venv3-lpschedule-generator
test:
@nosetests
@@ -44,8 +46,8 @@ venv:
venv3:
rm -rf *.egg-info
- $(shell [[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`)
- virtualenv --clear --python=python3 $(VENV_DIR3)
+ ${SHELL} -c '[[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`'
+ ${VENV_CMD} --clear --python=python3 $(VENV_DIR3)
@echo 'Initialized virtualenv, run' \
'source '$(VENV_DIR3)'/bin/activate' \
'to activate the virtual environment'