summaryrefslogtreecommitdiff
path: root/tests/lean/Makefile
blob: ed3b3e3b3710d783fa8d7dd2fe090b5ffe97ad99 (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
36
37
38
39
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