~james/span

1
de502ca765320a4ac82d4bce88e01936c82bc498
main
span/Makefile -rw-r--r--611 bytes ViewLogBlameView rawPermalink a68ad347f4 initial commit 13 days ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
ISABELLE ?= isabelle

.PHONY: all check clean

all: .build/ready

.build/ready: ROOT $(wildcard src/*.thy tests/*.thy) cli/driver.ML Makefile
	@test "$$('$(ISABELLE)' version)" = Isabelle2026 || { printf '%s\n' 'span requires Isabelle2026' >&2; exit 1; }
	"$(ISABELLE)" build -D . -j 1 -o threads=1 -o parallel_proofs=0
	"$(ISABELLE)" export -n -d . -O .build -x 'Span.Export:code/span.ML' Span
	SPAN_ROOT="$(CURDIR)" "$$('$(ISABELLE)' getenv -b POLYML_HOME)/$$('$(ISABELLE)' getenv -b ISABELLE_PLATFORM64)/polyc" -o .build/span cli/driver.ML
	@touch $@

check: all
	python3 tests/cli.py

clean:
	rm -rf .build