COQVERSION=$(shell coqc -v | grep version | cut -d' ' -f 6 )

all: Makefile.coq
	+make -f Makefile.coq all

clean: Makefile.coq
	+make -f Makefile.coq clean
	rm -f Makefile.coq

Makefile.coq: _CoqProject
	$(COQBIN)coq_makefile -f _CoqProject -arg -w -arg -notation-overridden >Makefile.coq

.PHONY: all clean
