-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 778 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Makefile
VENV := .venv
PYTHON := $(VENV)/bin/python3
PIP := $(VENV)/bin/pip
.PHONY: setup run clean
# Idempotent setup: only updates if requirements.txt changed or venv is missing
$(VENV)/bin/activate: requirements.txt
@test -d $(VENV) || python3 -m venv $(VENV)
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
@touch $(VENV)/bin/activate
setup: $(VENV)/bin/activate
config_merged.yaml: setup merge_blame.py config_general.yaml config_rcm_old.yaml
$(PYTHON) merge_blame.py config_general.yaml config_rcm_old.yaml > config_merged.yaml
# Example run command using the config file
run_cluster: setup config_merged.yaml
$(PYTHON) sprm.py --config config_merged.yaml --path $TMPDIR/$USER/spack_rcm_packages
clean:
rm -rf $(VENV)
rm -f git_sync_*.log