File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 - name : Run tests
5959 run : opam exec -- dune test
6060
61- - name : Format code
62- run : opam exec -- dune build --auto-promote @fmt
63- if : runner.os == 'Linux'
61+ # - name: Format code
62+ # run: opam exec -- dune build --auto-promote @fmt
63+ # if: runner.os == 'Linux'
Original file line number Diff line number Diff line change 1- [submodule "rocq-doc "]
2- path = rocq-doc
3- url = https://github.com/coq/doc
Original file line number Diff line number Diff line change 11.DEFAULT_GOAL := all
2+ DOC_PATH =` pwd ` /rocq-doc/
23
34.PHONY : all
45all :
@@ -32,8 +33,18 @@ playground:
3233install : all # # Install the packages on the system
3334 opam exec -- dune install --root .
3435
36+ .PHONY : local-doc
37+ local-doc :
38+ if [ -d rocq-doc ]; then cd rocq-doc && git pull; \
39+ else git clone --depth 1 https://github.com/coq/doc.git rocq-doc; fi
40+
41+ .PHONY : update-local-doc
42+ update-local-doc :
43+ @if [ -d rocq-doc ]; then cd rocq-doc && git pull; \
44+ else echo " No local doc copy, use \" make local-doc\" to get a local copy (~ 8 GB)" ; fi
45+
3546.PHONY : start
36- start : all # # Run the produced executable
47+ start : all update-local-doc # # Run the produced executable
3748 opam exec -- dune exec src/rocqproverorg_web/bin/main.exe
3849
3950.PHONY : test
@@ -51,11 +62,9 @@ doc: ## Generate odoc documentation
5162.PHONY : fmt
5263fmt : # # Format the codebase with ocamlformat
5364 opam exec -- dune build --root . --auto-promote @fmt
54-
55- DOC_PATH =` pwd ` /rocq-doc/
5665
5766.PHONY : watch
58- watch : # # Watch for the filesystem and rebuild on every change
67+ watch : update-local-doc # # Watch for the filesystem and rebuild on every change
5968 DOC_PATH=${DOC_PATH} opam exec -- dune build @run -w --force --no-buffer
6069
6170.PHONY : utop
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments