olean-export 0.1.0

Optimized library for reading Lean .olean files directly emitting lean4export-compatible NDJSON for external kernel checkers.
Documentation
LEAN ?= lean
SOKONANODA ?= sokonanoda
PREFIX := $(shell $(LEAN) --print-prefix)
EXPORT := cargo run -q --release --manifest-path ../Cargo.toml --
export LEAN_PATH := build:$(PREFIX)/lib/lean

all: build/hello.ndjson
	head -3 $<

build/Hello.olean: Hello.lean
	mkdir -p build
	$(LEAN) -o $@ $<

build/hello.ndjson: build/Hello.olean
	$(EXPORT) Hello -c double_two -o $@

check: build/hello.ndjson
	$(SOKONANODA) --nat-extension --print-success-message --stdin < $<

clean:
	rm -rf build

.PHONY: all check clean