3 MODULES = common misc types request daemon response
4 DESTDIR = $(shell $(OCAMLFIND) printconf stdlib)
13 $(MAKE) -C examples/ opt
18 $(OCAMLDEP) *.ml *.mli > .depend
27 http.cmo: $(patsubst %,%.cmo,$(MODULES))
29 http.cmx: $(patsubst %,%.cmx,$(MODULES))
30 ocamlopt -pack -o $@ $^
34 $(OCAMLOPT) -a -o $@ $<
38 cat META.in | sed -e 's/@DISTVERSION@/$(DISTVERSION)/' > META
41 $(MAKE) -C examples/ clean
42 -rm -f *.cm[ioax] *.cmxa *.[ao] test{,.opt}
44 $(MAKE) -C examples/ distclean
46 dist: distclean depend
49 $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \
50 $(EXTRA_DIST) examples/ debian/ \
52 -find $(DISTDIR)/ -type d -name CVS -exec rm -rf {} \;
53 -find $(DISTDIR)/ -type f -name ".cvs*" -exec rm -f {} \;
54 tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
57 $(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME) \
58 META common.mli types.mli request.mli daemon.mli response.mli http.*
61 all opt world examples examples.opt depend clean distclean dist \