aboutsummaryrefslogtreecommitdiff
path: root/mathcomp
diff options
context:
space:
mode:
Diffstat (limited to 'mathcomp')
-rw-r--r--mathcomp/algebra/Makefile7
-rw-r--r--mathcomp/all/Makefile30
-rw-r--r--mathcomp/attic/Makefile30
-rw-r--r--mathcomp/character/Makefile7
-rw-r--r--mathcomp/field/Makefile7
-rw-r--r--mathcomp/fingroup/Makefile7
-rw-r--r--mathcomp/odd_order/Makefile30
-rw-r--r--mathcomp/real_closed/Makefile7
-rw-r--r--mathcomp/solvable/Makefile7
-rw-r--r--mathcomp/ssrtest/Makefile7
10 files changed, 139 insertions, 0 deletions
diff --git a/mathcomp/algebra/Makefile b/mathcomp/algebra/Makefile
index d693257..ead5950 100644
--- a/mathcomp/algebra/Makefile
+++ b/mathcomp/algebra/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 $*
diff --git a/mathcomp/all/Makefile b/mathcomp/all/Makefile
new file mode 100644
index 0000000..ead5950
--- /dev/null
+++ b/mathcomp/all/Makefile
@@ -0,0 +1,30 @@
+H=@
+
+ifeq "$(COQBIN)" ""
+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 $*
+
+.PHONY: clean
+clean:
+ $(H)MAKEFLAGS=$(OLD_MAKEFLAGS) $(MAKE) --no-print-directory \
+ -f Makefile.coq clean
+ $(H)rm -f Makefile.coq
+
diff --git a/mathcomp/attic/Makefile b/mathcomp/attic/Makefile
new file mode 100644
index 0000000..ead5950
--- /dev/null
+++ b/mathcomp/attic/Makefile
@@ -0,0 +1,30 @@
+H=@
+
+ifeq "$(COQBIN)" ""
+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 $*
+
+.PHONY: clean
+clean:
+ $(H)MAKEFLAGS=$(OLD_MAKEFLAGS) $(MAKE) --no-print-directory \
+ -f Makefile.coq clean
+ $(H)rm -f Makefile.coq
+
diff --git a/mathcomp/character/Makefile b/mathcomp/character/Makefile
index d693257..ead5950 100644
--- a/mathcomp/character/Makefile
+++ b/mathcomp/character/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 $*
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 $*
diff --git a/mathcomp/fingroup/Makefile b/mathcomp/fingroup/Makefile
index d693257..ead5950 100644
--- a/mathcomp/fingroup/Makefile
+++ b/mathcomp/fingroup/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 $*
diff --git a/mathcomp/odd_order/Makefile b/mathcomp/odd_order/Makefile
new file mode 100644
index 0000000..ead5950
--- /dev/null
+++ b/mathcomp/odd_order/Makefile
@@ -0,0 +1,30 @@
+H=@
+
+ifeq "$(COQBIN)" ""
+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 $*
+
+.PHONY: clean
+clean:
+ $(H)MAKEFLAGS=$(OLD_MAKEFLAGS) $(MAKE) --no-print-directory \
+ -f Makefile.coq clean
+ $(H)rm -f Makefile.coq
+
diff --git a/mathcomp/real_closed/Makefile b/mathcomp/real_closed/Makefile
index d693257..ead5950 100644
--- a/mathcomp/real_closed/Makefile
+++ b/mathcomp/real_closed/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 $*
diff --git a/mathcomp/solvable/Makefile b/mathcomp/solvable/Makefile
index d693257..ead5950 100644
--- a/mathcomp/solvable/Makefile
+++ b/mathcomp/solvable/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 $*
diff --git a/mathcomp/ssrtest/Makefile b/mathcomp/ssrtest/Makefile
index 4bcf4fb..3614d33 100644
--- a/mathcomp/ssrtest/Makefile
+++ b/mathcomp/ssrtest/Makefile
@@ -7,6 +7,12 @@ MAKEFLAGS := -r
COQMAKEFILE := Makefile.coq
COQMAKE := +$(MAKE) -f $(COQMAKEFILE)
+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
+
all: $(COQMAKEFILE)
$(COQMAKE) all
@@ -23,4 +29,5 @@ tags:
install:
%: Makefile.coq
+ sed -i -e "s/^(\*$(VERSION_Coq) *\(.*\) *\*)/\1/" *.v
$(COQMAKE) $@