]> 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 950c72035b2ec9d547fb7c3a9ba7ce996b5c2ceb..591b21d990c0ebe5f2e47a5abfb48ef528b92c21 100644 (file)
@@ -1,11 +1,14 @@
 include Makefile.defs
 
-MODULES = common misc types request daemon 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/
@@ -24,14 +27,10 @@ depend:
 %.cmx: %.ml %.cmi
        $(OCAMLOPT) -c $<
 
-http.cmo: $(patsubst %,%.cmo,$(MODULES))
-       ocamlc -pack -o $@ $^
-http.cmx: $(patsubst %,%.cmx,$(MODULES))
-       ocamlopt -pack -o $@ $^
-http.cma: http.cmo
-       $(OCAMLC) -a -o $@ $<
-http.cmxa: http.cmx
-       $(OCAMLOPT) -a -o $@ $<
+http.cma: $(patsubst %,%.cmo,$(MODULES))
+       $(OCAMLC) -a -o $@ $^
+http.cmxa: $(patsubst %,%.cmx,$(MODULES))
+       $(OCAMLOPT) -a -o $@ $^
 
 meta: META
 META: META.in
@@ -39,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
@@ -55,9 +56,10 @@ dist: distclean depend
        rm -rf $(DISTDIR)/
 install: META
        $(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME)     \
-               META common.mli types.mli request.mli daemon.mli response.mli http.*
+               META $(patsubst %,%.mli,$(PUBLIC_MODULES))      \
+               $(patsubst %,%.cmi,$(PUBLIC_MODULES)) http.cm{,x}a http.a
 
 .PHONY:        \
        all opt world examples examples.opt depend clean distclean dist \
-       install meta
+       install meta doc