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)
14 $(MAKE) -C examples/ opt
19 $(OCAMLDEP) *.ml *.mli > .depend
28 http.cma: $(patsubst %,%.cmo,$(MODULES))
30 http.cmxa: $(patsubst %,%.cmx,$(MODULES))
31 $(OCAMLOPT) -a -o $@ $^
35 cat META.in | sed -e 's/@DISTVERSION@/$(DISTVERSION)/' > META
38 $(MAKE) -C examples/ clean
39 -rm -f *.cm[ioax] *.cmxa *.[ao] test{,.opt}
41 $(MAKE) -C examples/ distclean
43 dist: distclean depend
46 $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \
47 $(EXTRA_DIST) examples/ debian/ \
49 -find $(DISTDIR)/ -type d -name CVS -exec rm -rf {} \;
50 -find $(DISTDIR)/ -type f -name ".cvs*" -exec rm -f {} \;
51 tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
54 $(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME) \
55 META $(patsubst %,%.mli,$(PUBLIC_MODULES)) \
56 $(patsubst %,%.cmi,$(PUBLIC_MODULES)) http.cm{,x}a http.a
59 all opt world examples examples.opt depend clean distclean dist \