diff options
Diffstat (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile')
| -rw-r--r-- | opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile b/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile new file mode 100644 index 00000000..c3d83154 --- /dev/null +++ b/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile @@ -0,0 +1,17 @@ +.PHONY: install uninstall clean +SRCS = $(wildcard models/*) $(wildcard util/*) m3sa main.py + +install: $(SRCS) venv + +venv: requirements.txt + python -m venv venv + . venv/bin/activate && pip install -r requirements.txt + ln -s $(PWD)/m3sa ${HOME}/.local/bin/m3sa + @echo "WARNING: M3SA is installed under $(PWD). Do not move the directory." + +uninstall: + rm -rf venv + rm -f ${HOME}/.local/bin/m3sa + +clean: + rm -rf __pycache__ .mypy_cache .pytest_cache |
