File tree 4 files changed +16
-11
lines changed
4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 58
58
- name : Run tests
59
59
run : opam exec -- dune test
60
60
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 1
1
.DEFAULT_GOAL := all
2
+ DOC_PATH =` pwd ` /rocq-doc/
2
3
3
4
.PHONY : all
4
5
all :
@@ -32,8 +33,18 @@ playground:
32
33
install : all # # Install the packages on the system
33
34
opam exec -- dune install --root .
34
35
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
+
35
46
.PHONY : start
36
- start : all # # Run the produced executable
47
+ start : all update-local-doc # # Run the produced executable
37
48
opam exec -- dune exec src/rocqproverorg_web/bin/main.exe
38
49
39
50
.PHONY : test
@@ -51,11 +62,9 @@ doc: ## Generate odoc documentation
51
62
.PHONY : fmt
52
63
fmt : # # Format the codebase with ocamlformat
53
64
opam exec -- dune build --root . --auto-promote @fmt
54
-
55
- DOC_PATH =` pwd ` /rocq-doc/
56
65
57
66
.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
59
68
DOC_PATH=${DOC_PATH} opam exec -- dune build @run -w --force --no-buffer
60
69
61
70
.PHONY : utop
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments