-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
50 lines (32 loc) · 915 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: build lib doc clean install uninstall test gen gen_ragel gen_metaocaml archive
OCAMLBUILD=ocamlbuild -use-ocamlfind -no-links -j 0
target: build
gen_ragel: devkit_ragel.ml htmlStream_ragel.ml
gen_metaocaml:
OCAMLFIND_TOOLCHAIN=metaocaml ocamlfind ocamlc -linkpkg -package extlib stage_merge.ml -o stage_merge.byte
rm stage_merge.cm*
./stage_merge.byte > extEnum_merge.ml
ocamlfind ocamlc -package extlib -i extEnum_merge.ml > extEnum_merge.mli
%.ml: %.ml.rl
ragel -O -F1 $< -o $@
build: lib
lib:
dune build $(DUNEFLAGS)
top:
dune utop $(DUNEFLAGS)
test:
dune runtest $(DUNEFLAGS)
doc:
dune build $(DUNEFLAGS) @doc
install: lib
dune install
uninstall:
dune uninstall
reinstall: uninstall install
clean:
dune clean
distclean: clean
VERSION=$(shell git describe --tag --always)
NAME=devkit-$(VERSION)
archive:
git archive --prefix=$(NAME)/ HEAD | bzip2 > $(NAME).tbz