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
|
BLD=../_build/default
SRC=..
PKGS=\
-package uutf -package re -package markup \
-package ppxlib
INCS=\
-I ${BLD}/lib/.*.objs/byte \
-I ${BLD}/implem/.*.objs/byte \
-I ${BLD}/tools/.*.objs/byte
MLIS=\
$(wildcard ${SRC}/lib/*.mli) \
$(wildcard ${SRC}/implem/*.mli) ${SRC}/implem/tyxml.ml \
$(wildcard ${SRC}/tools/*.mli) \
${SRC}/ppx/tyxml_ppx.mli
DOCOPT := -colorize-code -short-functors -charset utf-8
.PHONY: doc wikidoc
doc: api/html/index.html
api/html/index.html: ${MLIS} indexdoc
mkdir -p api/html
ocamlfind ocamldoc ${DOCOPT} ${PKGS} ${INCS} -intro indexdoc -html \
-d api/html \
${MLIS}
wikidoc: api/wiki/index.wiki
api/wiki/index.wiki: ${MLIS} indexdoc
mkdir -p api/wiki
ocamlfind ocamldoc ${DOCOPT} ${PKGS} ${INCS} -intro indexdoc \
-d api/wiki \
-i $(shell ocamlfind query wikidoc) -g odoc_wiki.cma \
${MLIS}
clean:
rm -rf html api
|