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 cat META.in | sed -e 's/@DISTVERSION@/$(DISTVERSION)/' > META
37 $(MAKE) -C examples/ clean
38 -rm -f *.cm[ioax] *.o test{,.opt}
40 $(MAKE) -C examples/ distclean
42 dist: distclean depend
45 $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \
46 $(EXTRA_DIST) examples/ debian/ \
48 -find $(DISTDIR)/ -type d -name CVS -exec rm -rf {} \;
49 -find $(DISTDIR)/ -type f -name ".cvs*" -exec rm -f {} \;
50 tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
53 $(OCAMLFIND) install -destdir $(DESTDIR) $(PKGNAME) META *.mli http.*
56 all opt world examples examples.opt depend clean distclean dist \