testdata
[pin4sha_cgi.git] / Makefile
blob352689795cae9a27ab465403aef350848bdfe712
2 # https://github.com/ocaml/dune/tree/master/example/sample-projects/hello_world
3 # via https://stackoverflow.com/a/54712669
5 .PHONY: all build clean test install uninstall doc examples
7 build:
8 @echo "let git_sha = \""`git rev-parse --short HEAD`"\"" > bin/version.ml
9 @echo "let date = \""`date`"\"" >> bin/version.ml
10 dune build bin/pinboard.exe
12 all: build
14 test:
15 dune runtest
17 examples:
18 dune build @examples
20 install:
21 dune install
23 uninstall:
24 dune uninstall
26 doc:
27 dune build @doc
29 clean:
30 rm -rf _build *.install