aboutsummaryrefslogtreecommitdiff
path: root/Makefile.dune
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.dune')
-rw-r--r--Makefile.dune19
1 files changed, 15 insertions, 4 deletions
diff --git a/Makefile.dune b/Makefile.dune
index e3a8a30bc2..4609c563d9 100644
--- a/Makefile.dune
+++ b/Makefile.dune
@@ -3,8 +3,9 @@
.PHONY: help voboot states world watch check # Main developer targets
.PHONY: coq coqide coqide-server # Package targets
-.PHONY: quickbyte quickopt # Partial / quick developer targets
-.PHONY: test-suite refman-html apidoc release # Accesory targets
+.PHONY: quickbyte quickopt quickide # Partial / quick developer targets
+.PHONY: refman-html stdlib-html apidoc # Documentation targets
+.PHONY: test-suite release # Accesory targets
.PHONY: ocheck trunk ireport clean # Maintenance targets
# use DUNEOPT=--display=short for a more verbose build
@@ -26,9 +27,11 @@ help:
@echo ""
@echo " - quickbyte: build main ML files [coqtop + plugins + ide + printers] using the bytecode compiler"
@echo " - quickopt: build main ML files [coqtop + plugins + ide + printers] using the optimizing compiler"
+ @echo " - quickide: build main IDE files [client + server + prelude] using the optimizing compiler"
@echo ""
@echo " - test-suite: run Coq's test suite"
@echo " - refman-html: build Coq's reference manual [HTML version]"
+ @echo " - stdlib-html: build Coq's Stdlib documentation [HTML version]"
@echo " - apidoc: build ML API documentation"
@echo " - release: build Coq in release mode"
@echo ""
@@ -38,12 +41,14 @@ help:
@echo " - clean: remove build directory and autogenerated files"
@echo " - help: show this message"
+# We need to bootstrap with a dummy coq.plugins.ltac so install targets do work.
voboot:
+ @echo "(library (name ltac_plugin) (public_name coq.plugins.ltac) (modules_without_implementation extraargs extratactics))" > plugins/ltac/dune
dune build $(DUNEOPT) @vodeps
dune exec ./tools/coq_dune.exe $(BUILD_CONTEXT)/.vfiles.d
states: voboot
- dune build $(DUNEOPT) theories/Init/Prelude.vo
+ dune build --display=short $(DUNEOPT) dev/shim/coqtop-prelude
world: voboot
dune build $(DUNEOPT) @install
@@ -75,12 +80,18 @@ quickbyte: voboot
quickopt: voboot
dune build $(DUNEOPT) $(QUICKOPT_TARGETS)
+quickide: states
+ dune build $(DUNEOPT) dev/shim/coqide-prelude
+
test-suite: voboot
- dune runtest $(DUNEOPT)
+ dune runtest --no-buffer $(DUNEOPT)
refman-html: voboot
dune build @refman-html
+stdlib-html: voboot
+ dune build @stdlib-html
+
apidoc: voboot
dune build $(DUNEOPT) @doc