-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
42 lines (34 loc) · 1.14 KB
/
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
.PHONY: all clean build configure distclean doc apidoc
all: build
configure: distclean
./configure --enable-sqlite --enable-postgresql --enable-test /tmp/usr/
build:
ocaml setup.ml -build -cflag -safe-string && \
rm -f main.byte main.native && \
mv _build/src/test/main.native trakeva_tests
apidoc:
mkdir -p _apidoc && \
ocamlfind ocamldoc -html -d _apidoc/ \
-package nonstd,pvem_lwt_unix,sqlite3,postgresql,sosa,uri \
-thread -charset UTF-8 -t "Trakeva API" -keep-code -colorize-code \
-sort \
-I _build/src/lib/ \
-I _build/src/lib_sqlite/ \
-I _build/src/lib_postgresql/ \
-I _build/gen/lib_of_uri/ \
src/*/*.mli src/*/*.ml gen/*/*.mli
doc: apidoc build
INPUT=src/doc/ \
INDEX=README.md \
TITLE_PREFIX="Trakeva: " \
OUTPUT_DIR=_doc \
API=_apidoc \
CATCH_MODULE_PATHS='^(Trakeva[A-Z_a-z]+):', \
TITLE_SUBSTITUTIONS="main.ml:Literate Tests" \
oredoc
clean:
rm -fr _build trakeva_tests
distclean: clean
ocaml setup.ml -distclean || echo OK ; \
rm -fr gen/ ; \
rm -f setup.ml _tags myocamlbuild.ml src/*/META src/*/*.mldylib src/*/*.mllib _oasis