summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2019-05-19 10:59:55 -0400
committerrsiddharth <rsd@gnu.org>2019-05-19 10:59:55 -0400
commitd47ca2bb6a64d08007e709cc94d1523bb90ee82b (patch)
treed09ec28146c7555f5d5cb0115f8144001669dd64
parent93e33ed0b78192abdd2e625f5f19c667d64693be (diff)
Makefile: Update venv3.
Setup venv3 so that I'm able to provision virtual environments under /usr/local/virtualenv/ directory (due to OpenBSD's 'wxallowed'). * Makefile (VENV_CMD, VENV_PREFIX): New variables. (VENV_DIR3): Update variable. (venv3): Update target.
-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'