summaryrefslogtreecommitdiff
path: root/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile
diff options
context:
space:
mode:
authorRadu Nicolae <rnicolae04@gmail.com>2025-06-16 18:01:07 +0200
committerGitHub <noreply@github.com>2025-06-16 18:01:07 +0200
commit0df3d9ced743ac3385dd710c7133a6cf369b051c (patch)
treeeff5d6d67c275643e229731ba08c5fe7dc4ccd0a /opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile
parentc7e303ad1b5217e2ff24cee9538ac841d6149706 (diff)
integrated M3SA, updated with tests and CpuPowerModels
Diffstat (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile')
-rw-r--r--opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile17
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