Newer
Older
# Determine Coq version
COQ_VERSION=$(shell coqc --version | egrep -o 'version 8.[0-9]' | egrep -o '8.[0-9]')
COQ_MAKEFILE_FLAGS ?=
ifeq ($(COQ_VERSION), 8.6)
COQ_MAKEFILE_FLAGS += -arg -w -arg -notation-overridden,-redundant-canonical-projection,-several-object-files
# Forward most targets to Coq makefile (with some trick to make this phony)
find theories \( -name "*.v.d" -o -name "*.vo" -o -name "*.aux" -o -name "*.cache" -o -name "*.glob" -o -name "*.vio" \) -print -delete
Makefile.coq: _CoqProject Makefile awk.Makefile

Ralf Jung
committed
coq_makefile $(COQ_MAKEFILE_FLAGS) -f _CoqProject -o Makefile.coq
awk -i inplace -f awk.Makefile Makefile.coq
# Install build-dependencies
build-dep:
build/opam-pins.sh < opam.pins
opam upgrade $(YFLAG) # it is not nice that we upgrade *all* packages here, but I found no nice way to upgrade only those that we pinned
opam pin add coq-iris "$$(pwd)#HEAD" -k git -n -y
opam install coq-iris --deps-only $(YFLAG)
opam pin remove coq-iris
# some fiels that do *not* need to be forwarded to Makefile.coq
# Phony targets (i.e. targets that should be run no matter the timestamps of the involved files)

Ralf Jung
committed
.PHONY: all clean phony