Skip to content

Commit 97c7622

Browse files
committed
Use invoke script directly
1 parent 62ef6bb commit 97c7622

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LOGFILE := experiment.log
1010
VENV_DIR := .venv
1111
VENV_PYTHON := $(VENV_DIR)/bin/python
1212
PYTHON := $(VENV_PYTHON) # Use venv python consistently
13+
INVOKE := $(VENV_DIR)/bin/invoke
1314

1415
BIN_DIR ?= $(CURDIR)/artefacts/bin
1516
BIN_ARCHIVE ?= artefacts-bin.tar.xz
@@ -19,12 +20,14 @@ PREBUILT_BIN := $(PREBUILT_DIR)/bin # Added definition
1920
GDRIVE_FILE_ID = 1oDkZ2RH65iq25_65AppzdLH_zzbt6oRz
2021
GDRIVE_ARTEFACT = $(PREBUILT_DIR)/$(BIN_ARCHIVE)
2122

22-
.PHONY: venv run-full run-quick fetch-binaries bare-metal
23+
.PHONY: run-full run-quick fetch-binaries bare-metal
2324

24-
venv:
25-
@test -d $(VENV_DIR) || python3 -m venv $(VENV_DIR)
25+
$(VENV_DIR):
26+
python3 -m venv $(VENV_DIR)
2627
$(PYTHON) -m pip install --upgrade pip
27-
$(PYTHON) -m pip install .
28+
$(PYTHON) -m pip install -e .
29+
30+
venv: pyproject.toml | $(VENV_DIR)
2831

2932
run-quick: fetch-binaries
3033
docker buildx build \
@@ -69,7 +72,7 @@ fetch-binaries: venv
6972
@echo "Done"
7073

7174
bare-metal: venv
72-
@./run build-alloy \
75+
@$(INVOKE) build-benchmarks \
7376
$(if $(EXPERIMENTS),--experiments $(EXPERIMENTS)) \
7477
$(if $(SUITES),--suites $(SUITES)) \
7578
$(if $(MEASUREMENTS),--measurements $(MEASUREMENTS))

0 commit comments

Comments
 (0)