diff --git a/Makefile b/Makefile index 51cf12d0852549f11dde463406570900ee31d326..fa51a2f76603c5121c6817f59fc307b8184c79ab 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ %: Makefile.coq phony +@make -f Makefile.coq $@ +# Compile this project all: Makefile.coq +@make -f Makefile.coq all @@ -11,11 +12,13 @@ clean: Makefile.coq Makefile.coq: _CoqProject Makefile coq_makefile -f _CoqProject | sed 's/$$(COQCHK) $$(COQCHKFLAGS) $$(COQLIBS)/$$(COQCHK) $$(COQCHKFLAGS) $$(subst -Q,-R,$$(COQLIBS))/' > Makefile.coq -iris-local: clean - git submodule update --init iris - ln -nsf iris iris-enabled - +make -C iris -f Makefile +# Use local Iris dependency +iris-local: + 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 +# Use system-installed Iris dependency iris-system: clean rm -f iris-enabled