-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 743 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PKGVERSION = $(shell git describe --always --dirty)
GIT_REPO = $(shell grep dev-repo mindstorm.opam \
| sed -e 's/.*\(http[^"]*\).*/\1/')
build:
dune build @install @tests @examples
tests: build
dune runtest --force
install uninstall clean:
dune $@
doc: build
dune build @doc
sed -e 's/%%VERSION%%/$(PKGVERSION)/' --in-place \
_build/default/_doc/_html/mindstorm/Mindstorm/index.html
website:
export DIR=`mktemp -d /tmp/mindstorm.XXXX` && \
git clone -b gh-pages --depth 1 $(GIT_REPO) $$DIR && \
cp -a web/* $$DIR && \
cd $$DIR && git add . && git commit -m "Update website" && \
git push origin gh-pages && \
$(RM) -r $$DIR
.PHONY: build tests install uninstall clean doc submit \
website website-img clean