Skip to content

Commit ba9a323

Browse files
committed
build: add symbolic link creation for the 'doc' Makefile rule
1 parent d78d2df commit ba9a323

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ all: static build
22

33
DUNE = dune
44
DUNE_ARGS = --profile=release
5+
INDEX_ODOC_PATH = docs/odoc.html
56

67
build-deps:
78
opam install . --deps-only --locked
@@ -17,6 +18,7 @@ static:
1718
.PHONY: doc
1819
doc:
1920
@${DUNE} build ${DUNE_ARGS} @doc
21+
ln -sf $(PWD)/_build/default/_doc/_html/index.html ${INDEX_ODOC_PATH}
2022

2123
.PHONY: install
2224
install: static doc
@@ -84,6 +86,7 @@ clean:
8486
@${MAKE} -C static clean
8587
-rm -rf www
8688
-find . -name "*~" -delete
89+
-rm -f ${INDEX_ODOC_PATH}
8790

8891
travis: # From https://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally
8992
BUILDID="build-$$RANDOM"; \

0 commit comments

Comments
 (0)