]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/Makefile
- added ocamldoc documentation in debian package
[helm.git] / helm / DEVEL / ocaml-http / Makefile
index 31f63cf972519914c7a45023fc9a57c1a5b28217..591b21d990c0ebe5f2e47a5abfb48ef528b92c21 100644 (file)
@@ -1,12 +1,14 @@
 include Makefile.defs
 
-MODULES = http_common http_misc http_types http_request http_parser tcp_server http_daemon http_response
+MODULES = http_common http_misc http_types http_request http_parser http_tcp_server http_daemon http_response
 PUBLIC_MODULES = http_common http_types http_request http_daemon http_response
 DESTDIR = $(shell $(OCAMLFIND) printconf stdlib) 
 
 all: http.cma
 opt: http.cmxa
 world: all opt
+doc: *.mli
+       $(OCAMLDOC) -html -d doc/html *.mli
 
 examples:
        $(MAKE) -C examples/
@@ -36,8 +38,10 @@ META: META.in
 
 clean:
        $(MAKE) -C examples/ clean
-       -rm -f *.cm[ioax] *.cmxa *.[ao] test{,.opt}
-distclean: clean
+       rm -f *.cm[ioax] *.cmxa *.[ao] test{,.opt}
+docclean:
+       rm -f doc/html/*.html doc/html/*.css
+distclean: clean docclean
        $(MAKE) -C examples/ distclean
        -rm -f META
 dist: distclean depend
@@ -57,5 +61,5 @@ install: META
 
 .PHONY:        \
        all opt world examples examples.opt depend clean distclean dist \
-       install meta
+       install meta doc