Skip to content

Commit d47b70b

Browse files
committed
Makefile: allow setting the parallel with variable
1 parent f770605 commit d47b70b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
UV := uv --directory kmir
22
UV_RUN := $(UV) run
33

4+
PARALLEL := 4
5+
46
TOP_DIR := $(shell pwd)
57

68
default: check build
79

810
build:
9-
$(UV_RUN) kdist -v build mir-semantics\.* -j4
11+
$(UV_RUN) kdist -v build mir-semantics\.* -j$(PARALLEL)
1012

1113
.PHONY: test
1214
test: test-unit test-integration smir-parse-tests
@@ -46,7 +48,7 @@ test-unit:
4648

4749
test-integration: build
4850
$(UV_RUN) pytest $(TOP_DIR)/kmir/src/tests/integration --maxfail=1 --verbose \
49-
--durations=0 --numprocesses=4 --dist=worksteal $(TEST_ARGS)
51+
--durations=0 --numprocesses=$(PARALLEL) --dist=worksteal $(TEST_ARGS)
5052

5153
# Checks and formatting
5254

0 commit comments

Comments
 (0)