diff options
Diffstat (limited to 'mathcomp/field/Makefile')
| -rw-r--r-- | mathcomp/field/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mathcomp/field/Makefile b/mathcomp/field/Makefile index d693257..ead5950 100644 --- a/mathcomp/field/Makefile +++ b/mathcomp/field/Makefile @@ -5,12 +5,19 @@ COQBIN=$(dir $(shell which coqtop))/ endif +VERSION_Coq = $(shell $(COQBIN)/coqtop -v | head -1 | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/v\1/') + +ifeq "$(VERSION_Coq)" "" +$(error no version number found for coq) +endif + OLD_MAKEFLAGS:=$(MAKEFLAGS) MAKEFLAGS+=-B .DEFAULT_GOAL := all %: + sed -i -e "s/^(\*$(VERSION_Coq) *\(.*\) *\*)/\1/" *.v $(H)[ -e Makefile.coq ] || $(COQBIN)/coq_makefile -f Make -o Makefile.coq $(H)MAKEFLAGS=$(OLD_MAKEFLAGS) $(MAKE) --no-print-directory \ -f Makefile.coq $* |
