3 MODULES = http_common http_misc http_types http_request http_parser http_tcp_server http_daemon http_response
4 PUBLIC_MODULES = http_common http_types http_request http_daemon http_response
5 DESTDIR = $(shell $(OCAMLFIND) printconf stdlib)
11 $(OCAMLDOC) -html -d doc/html *.mli
16 $(MAKE) -C examples/ opt
21 $(OCAMLDEP) *.ml *.mli > .depend
30 http.cma: $(patsubst %,%.cmo,$(MODULES))
32 http.cmxa: $(patsubst %,%.cmx,$(MODULES))
33 $(OCAMLOPT) -a -o $@ $^
37 cat META.in | sed -e 's/@DISTVERSION@/$(DISTVERSION)/' > META
40 $(MAKE) -C examples/ clean
41 rm -f *.cm[ioax] *.cmxa *.[ao] test{,.opt}
43 rm -f doc/html/*.html doc/html/*.css
44 distclean: clean docclean
45 $(MAKE) -C examples/ distclean
47 dist: distclean depend
50 $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \
51 $(EXTRA_DIST) examples/ debian/ \
53 -find $(DISTDIR)/ -type d -name CVS -exec rm -rf {} \;
54 -find $(DISTDIR)/ -type f -name ".cvs*" -exec rm -f {} \;
55 tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
58 $(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME) \
59 META $(patsubst %,%.mli,$(PUBLIC_MODULES)) \
60 $(patsubst %,%.cmi,$(PUBLIC_MODULES)) http.cm{,x}a http.a
63 all opt world examples examples.opt depend clean distclean dist \