aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/solvable/Makefile
diff options
context:
space:
mode:
authorCyril Cohen2015-03-24 12:23:33 +0100
committerCyril Cohen2015-03-24 12:23:33 +0100
commitc7ddacdfc43ba25c9fbd9505b3960047c13596d0 (patch)
tree2b3e5624a90027352667518de0f434908e2e349d /mathcomp/solvable/Makefile
parent0d2a1e7388d45776700c4400781e1aa71a0f0060 (diff)
metadata for solvable and field
Diffstat (limited to 'mathcomp/solvable/Makefile')
-rw-r--r--mathcomp/solvable/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/mathcomp/solvable/Makefile b/mathcomp/solvable/Makefile
new file mode 100644
index 0000000..d693257
--- /dev/null
+++ b/mathcomp/solvable/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
+