forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
38 lines (33 loc) · 1.01 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
OPAM = ../_obuild/opam/opam.byte
TOPICS = $(shell $(OPAM) help topics)
OPAM_ADMIN = ../_obuild/opam-admin/opam-admin.byte
TOPICS_ADMIN = check make
HELPFMT = --help=groff
.PHONY: man html dev-manual tutorials
all: man tutorials dev html
man:
rm -f man/*
$(OPAM) $(HELPFMT) > man/opam.1
for i in $(TOPICS); do\
$(OPAM) $$i $(HELPFMT) > man/opam-$$i.1;\
done
$(OPAM_ADMIN) $(HELPFMT) > man/opam-admin.1
for i in $(TOPICS_ADMIN); do\
$(OPAM_ADMIN) $$i $(HELPFMT) > man/opam-admin-$$i.1;\
done
for i in opam-check; do\
pandoc -s -t man man-ext/$$i.md -o man/$$i.1;\
done
tutorials:
$(MAKE) -C tutorials
dev:
$(MAKE) -C dev-manual
html:
mkdir -p html/
ocamldoc \
-I ../_obuild/opam-core -I ../_obuild/opam-solver \
-I ../_obuild/opam-repositories -I ../_obuild/opam-client \
-I ../_obuild/opam-lib -I ../_obuild/cudf -I ../_obuild/dose \
-I ../_obuild/re -I ../_obuild/unix -I ../_obuild/extlib \
-I ../_obuild/arg -I ../_obuild/graph -I ../_obuild/cmdliner \
../src/**/*.mli -html -d html/