Makefile 808 Bytes
Newer Older
1 2
%: Makefile.coq phony
	+@make -f Makefile.coq $@
Zhen Zhang's avatar
Zhen Zhang committed
3

Zhen Zhang's avatar
Zhen Zhang committed
4
# Compile this project
Zhen Zhang's avatar
Zhen Zhang committed
5
all: Makefile.coq
6
	+@make -f Makefile.coq all
Zhen Zhang's avatar
Zhen Zhang committed
7 8

clean: Makefile.coq
9
	+@make -f Makefile.coq clean
Zhen Zhang's avatar
Zhen Zhang committed
10 11 12 13 14
	rm -f Makefile.coq

Makefile.coq: _CoqProject Makefile
	coq_makefile -f _CoqProject | sed 's/$$(COQCHK) $$(COQCHKFLAGS) $$(COQLIBS)/$$(COQCHK) $$(COQCHKFLAGS) $$(subst -Q,-R,$$(COQLIBS))/' > Makefile.coq

Zhen Zhang's avatar
Zhen Zhang committed
15
# Use local Iris dependency
Zhen Zhang's avatar
Zhen Zhang committed
16
iris-local:
Zhen Zhang's avatar
Zhen Zhang committed
17 18 19
	git submodule update --init iris # If not initialized, then initialize; If not updated with this remote, then update
	ln -nsf iris iris-enabled # If not linked, then link
	+make -C iris -f Makefile # If not built, then build
20

Zhen Zhang's avatar
Zhen Zhang committed
21 22
# Use system-installed Iris dependency
iris-system: clean
23 24
	rm -f iris-enabled

Zhen Zhang's avatar
Zhen Zhang committed
25 26 27 28
_CoqProject: ;

Makefile: ;

29 30
phony: ;

Zhen Zhang's avatar
Zhen Zhang committed
31
.PHONY: all clean phony iris-local iris-system