12345678910111213141516171819202122232425262728293031 |
- #
- # https://github.com/ocaml/dune/tree/master/example/sample-projects/hello_world
- # via https://stackoverflow.com/a/54712669
- #
- .PHONY: all build clean test install uninstall doc examples
- build:
- @echo "let git_sha = \""`git rev-parse --short HEAD`"\"" > lib/version.ml
- dune build bin/xkcd936.exe
- all: build
- test:
- dune runtest
- examples:
- dune build @examples
- install:
- dune install
- uninstall:
- dune uninstall
- doc:
- dune build @doc
- clean:
- rm -rf _build *.install
|