| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
ROOTDIR = .. |
| 17 |
-include ../Makefile.build_config |
| 18 |
|
| 19 |
odoc-%: |
| 20 |
$(MAKE) -C odoc $* |
| 21 |
|
| 22 |
ocamldoc-%: |
| 23 |
$(MAKE) -C ocamldoc $* |
| 24 |
|
| 25 |
ifeq ($(DOCUMENTATION_TOOL),odoc) |
| 26 |
man: odoc-man |
| 27 |
latex: odoc-latex |
| 28 |
html: odoc-html |
| 29 |
@echo "documentation is in ./api_docgen/odoc/build/html/" |
| 30 |
all: html latex man |
| 31 |
install: odoc-install |
| 32 |
else |
| 33 |
man: ocamldoc-man |
| 34 |
latex: ocamldoc-latex |
| 35 |
html: ocamldoc-html |
| 36 |
@echo "documentation is in ./api_docgen/ocamldoc/build/html/" |
| 37 |
texi: ocamldoc-texi |
| 38 |
pdf: ocamldoc-pdf |
| 39 |
all: html pdf man latex texi |
| 40 |
install: ocamldoc-install |
| 41 |
endif |
| 42 |
|
| 43 |
clean: |
| 44 |
rm -rf build odoc/build ocamldoc/build |
| 45 |
|
| 46 |
distclean: clean |
| 47 |
|
| 48 |
.PHONY: html latex man clean distclean install texi pdf |