| 1 |
build: |
| 2 |
dune build -p inotify |
| 3 |
|
| 4 |
test: build |
| 5 |
dune runtest |
| 6 |
|
| 7 |
doc: |
| 8 |
dune build @doc |
| 9 |
|
| 10 |
install: |
| 11 |
dune build @install |
| 12 |
dune install |
| 13 |
|
| 14 |
uninstall: |
| 15 |
dune uninstall |
| 16 |
|
| 17 |
clean: |
| 18 |
dune clean |
| 19 |
|
| 20 |
gh-pages: doc |
| 21 |
git clone `git config --get remote.origin.url` .gh-pages --reference . |
| 22 |
git -C .gh-pages checkout --orphan gh-pages |
| 23 |
git -C .gh-pages reset |
| 24 |
git -C .gh-pages clean -dxf |
| 25 |
cp -t .gh-pages/ api.docdir/* |
| 26 |
git -C .gh-pages add . |
| 27 |
git -C .gh-pages commit -m "Update Pages" |
| 28 |
git -C .gh-pages push origin gh-pages -f |
| 29 |
rm -rf .gh-pages |
| 30 |
|
| 31 |
release: |
| 32 |
dune-release |
| 33 |
|
| 34 |
.PHONY: gh-pages release |