From 4db56fe2c963a4052f8415b3985c8765407fccbc Mon Sep 17 00:00:00 2001 From: Son Ho Date: Tue, 7 Mar 2023 17:49:03 +0100 Subject: Update the extraction of Lean files --- tests/lean/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/lean/Makefile (limited to 'tests/lean/Makefile') diff --git a/tests/lean/Makefile b/tests/lean/Makefile new file mode 100644 index 00000000..ed3b3e3b --- /dev/null +++ b/tests/lean/Makefile @@ -0,0 +1,40 @@ +ALL_DIRS ?= $(filter-out %~ lean-toolchain% Makefile%, $(wildcard *)) + +UPDATE_DIRS = $(addprefix update-,$(ALL_DIRS)) + +VERIFY_DIRS = $(addprefix verif-,$(ALL_DIRS)) + +CLEAN_DIRS = $(addprefix clean-,$(ALL_DIRS)) + +COPY_LEAN_TOOLCHAIN = $(addprefix copy-lean-toolchain-,$(ALL_DIRS)) + +.PHONY: all +all: prepare-projects verify + +.PHONY: prepare-projects +prepare-projects: $(COPY_LEAN_TOOLCHAIN) + +.PHONY: prepare-projects +copy-lean-toolchain-%: + cp lean-toolchain $* + +.PHONY: update +update: $(UPDATE_DIRS) + +.PHONY: update-% +update-%: + cd $* && lake update + +.PHONY: verify +verify: $(VERIFY_DIRS) + +.PHONY: verif-% +verif-%: + cd $* && lake build + +.PHONY: clean +clean: $(CLEAN_DIRS) + +.PHONY: clean-% +clean-%: + cd $* && lake clean -- cgit v1.2.3