diff options
author | rsiddharth <rsd@gnu.org> | 2019-05-19 10:59:55 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2019-05-19 10:59:55 -0400 |
commit | d47ca2bb6a64d08007e709cc94d1523bb90ee82b (patch) | |
tree | d09ec28146c7555f5d5cb0115f8144001669dd64 | |
parent | 93e33ed0b78192abdd2e625f5f19c667d64693be (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-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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' |