Makefile 473 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # https://github.com/ocaml/dune/tree/master/example/sample-projects/hello_world
  3. # via https://stackoverflow.com/a/54712669
  4. #
  5. .PHONY: all build clean test install uninstall doc examples
  6. build:
  7. @echo "let git_sha = \""`git rev-parse --short HEAD`"\"" > lib/version.ml
  8. dune build bin/xkcd936.exe
  9. all: build
  10. test:
  11. dune runtest
  12. examples:
  13. dune build @examples
  14. install:
  15. dune install
  16. uninstall:
  17. dune uninstall
  18. doc:
  19. dune build @doc
  20. clean:
  21. rm -rf _build *.install