aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/algebra/Makefile
diff options
context:
space:
mode:
authorCyril Cohen2015-03-19 15:51:00 +0100
committerCyril Cohen2015-03-19 15:51:00 +0100
commit0d2a1e7388d45776700c4400781e1aa71a0f0060 (patch)
treeb0c4a11360695c8c35a1e0f43f83c2ad8d74ab45 /mathcomp/algebra/Makefile
parent0c07923a26783e57f9d4e755d6c81e31efd31d1c (diff)
packaging fingroup and algebra
The files zmodp and cyclic in fingroup had dependecies in algebra so I put them there. I'm not convinced it's the best solution to this problem. Maybe more subdivisions in algebra would bring a better solution? (Maybe we should send the whole problem to a solver? :P)
Diffstat (limited to 'mathcomp/algebra/Makefile')
-rw-r--r--mathcomp/algebra/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/mathcomp/algebra/Makefile b/mathcomp/algebra/Makefile
new file mode 100644
index 0000000..d693257
--- /dev/null
+++ b/mathcomp/algebra/Makefile
@@ -0,0 +1,23 @@
+H=@
+
+ifeq "$(COQBIN)" ""
+COQBIN=$(dir $(shell which coqtop))/
+endif
+
+
+OLD_MAKEFLAGS:=$(MAKEFLAGS)
+MAKEFLAGS+=-B
+
+.DEFAULT_GOAL := all
+
+%:
+ $(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
+