summaryrefslogtreecommitdiff
path: root/tests/lean/Makefile
blob: 3ccfbec21d727cff37c5fe324d7bfc0cb9b332b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ALL_DIRS ?= $(filter-out %~ lean-toolchain% Makefile%, $(wildcard *))

# TODO: remove
UPDATE_DIRS = $(addprefix update-,$(ALL_DIRS))

# TODO: remove
VERIFY_DIRS = $(addprefix verif-,$(ALL_DIRS))

# TODO: remove
CLEAN_DIRS = $(addprefix clean-,$(ALL_DIRS))

# TODO: remove
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 ../../backends/lean/lean-toolchain .

.PHONY: update
update:
	lake update

.PHONY: verify
verify:
	lake build

.PHONY: clean
clean:
	lake clean