Makefile 846 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 16
# Initialize local Iris dependency
iris-local-init: clean
17 18
	git submodule update --init iris
	ln -nsf iris iris-enabled
Zhen Zhang's avatar
Zhen Zhang committed
19 20 21

# Build local Iris dependency
iris-local:
22 23
	+make -C iris -f Makefile

Zhen Zhang's avatar
Zhen Zhang committed
24 25
# Initialize global Iris dependency
iris-system-init: clean
26 27
	rm -f iris-enabled

Zhen Zhang's avatar
Zhen Zhang committed
28 29 30 31 32
# Update local Iris dependency
iris-local-update:
	git submodule update --remote --merge


Zhen Zhang's avatar
Zhen Zhang committed
33 34 35 36
_CoqProject: ;

Makefile: ;

37 38
phony: ;

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