build with ocamlbuild by default
[deriving.git] / Makefile
blob29b80460a46d4a076f6aec6f5d5d29bfd340b2f8
1 #VERSION = $(shell git describe --tags --always)
2 VERSION = 0.1.1a-git
4 target: obuild
6 built:
7 $(MAKE) -C syntax
8 $(MAKE) -C lib ncl bcl
10 .PHONY: tests
11 tests: built
12 $(MAKE) -C tests
14 clean:
15 $(MAKE) -C syntax clean
16 $(MAKE) -C lib clean
17 $(MAKE) -C tests clean
19 .PHONY: obuild
20 obuild:
21 ocamlbuild deriving.cma deriving.cmxa deriving.byte deriving.native
23 .PHONY: install
24 install: obuild
25 ocamlfind install -patch-version $(VERSION) \
26 deriving META \
27 $(wildcard _build/*.cmxa _build/*.a _build/*.lib _build/*.cma) \
28 $(wildcard _build/lib/*.cmi _build/lib/*.mli _build/lib/*.cmx)
30 .PHONY: uninstall
31 uninstall:
32 ocamlfind remove deriving
34 .PHONY: oclean
35 oclean:
36 ocamlbuild -clean