aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/all
diff options
context:
space:
mode:
authorEnrico2018-08-01 11:48:09 +0200
committerGitHub2018-08-01 11:48:09 +0200
commit247ec435a6dd1c17a42b75ae46763a9062f1f291 (patch)
treee78cba9b79b6f509a37d645a95139d143add6632 /mathcomp/all
parent6c6c907438f4179ac335e7daa9f1ed030c0c8259 (diff)
parent629a7a065146679f14f95abf1de63a7ff3a2eacc (diff)
Merge pull request #213 from CohenCyril/Makefile
Rework the whole Makefile architecture
Diffstat (limited to 'mathcomp/all')
-rw-r--r--mathcomp/all/Makefile35
1 files changed, 19 insertions, 16 deletions
diff --git a/mathcomp/all/Makefile b/mathcomp/all/Makefile
index a58be7b..30204d2 100644
--- a/mathcomp/all/Makefile
+++ b/mathcomp/all/Makefile
@@ -1,22 +1,25 @@
-H=@
+# -*- Makefile -*-
-ifeq "$(COQBIN)" ""
-COQBIN=$(dir $(shell which coqtop))/
-endif
+COQPROJECT="Make"
-OLD_MAKEFLAGS:=$(MAKEFLAGS)
-MAKEFLAGS+=-B
+# --------------------------------------------------------------------
+include Makefile.common
-.DEFAULT_GOAL := all
+# --------------------------------------------------------------------
+COQMAKEOPTIONS=--no-print-directory
-%:
- $(H)[ -e Makefile.coq ] || $(COQBIN)/coq_makefile -f Make -o Makefile.coq
- $(H)MAKEFLAGS="$(OLD_MAKEFLAGS)" $(MAKE) --no-print-directory \
- -f Makefile.coq $*
+# --------------------------------------------------------------------
+.PHONY: install
-.PHONY: clean
-clean:
- $(H)MAKEFLAGS="$(OLD_MAKEFLAGS)" $(MAKE) --no-print-directory \
- -f Makefile.coq clean
- $(H)rm -f Makefile.coq
+install:
+ $(MAKE) -f Makefile.coq install
+
+# --------------------------------------------------------------------
+.PHONY: count
+
+COQFILES := $(shell grep '.v$$' Make)
+
+count:
+ @coqwc $(COQFILES) | tail -1 | \
+ awk '{printf ("%d (spec=%d+proof=%d)\n", $$1+$$2, $$1, $$2)}'