add dune-file and .opam.
[xkcd936.git] / Makefile
blobad0936fe7baac02b799d82a768c594eff4fc74a8
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`"\"" > lib/version.ml
9 dune build bin/xkcd936.exe
11 all: build
13 test:
14 dune runtest
16 examples:
17 dune build @examples
19 install:
20 dune install
22 uninstall:
23 dune uninstall
25 doc:
26 dune build @doc
28 clean:
29 rm -rf _build *.install