install with ocamlfind
[deriving.git] / Makefile
bloba62e5039ec6b13723adf195f7168ca185178160e
1 #VERSION = $(shell git describe --tags --always)
2 VERSION = 0.1.1a-git
4 built:
5 $(MAKE) -C syntax
6 $(MAKE) -C lib ncl bcl
8 .PHONY: tests
9 tests: built
10 $(MAKE) -C tests
12 clean:
13 $(MAKE) -C syntax clean
14 $(MAKE) -C lib clean
15 $(MAKE) -C tests clean
17 .PHONY: obuild
18 obuild:
19 ocamlbuild deriving.cma deriving.cmxa deriving.byte deriving.native
21 .PHONY: install
22 install: obuild
23 ocamlfind install -patch-version $(VERSION) \
24 deriving META \
25 $(wildcard _build/*.cmxa _build/*.a _build/*.lib _build/*.cma) \
26 $(wildcard _build/lib/*.cmi _build/lib/*.mli _build/lib/*.cmx)
28 .PHONY: uninstall
29 uninstall:
30 ocamlfind remove deriving