aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index d555fea236..e0e197650d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,14 @@
-all: Makefile.coq
- $(MAKE) -f Makefile.coq
+ifeq "$(COQBIN)" ""
+ COQBIN=$(dir $(shell which coqtop))/
+endif
-install: all
- $(MAKE) -f Makefile.coq install
-
-clean: Makefile.coq
- $(MAKE) -f Makefile.coq clean
- rm -f Makefile.coq
+%: Makefile.coq
Makefile.coq: _CoqProject
- $(COQBIN)/coq_makefile -f _CoqProject -o Makefile.coq
+ $(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq
tests: all
@$(MAKE) -C tests -s clean
@$(MAKE) -C tests -s all
+
+-include Makefile.coq