X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2FMakefile;h=bf0c96ac863b6f95b77dcaf8880a880b102e7688;hb=c10721e8910fc80786cf668d0f843e3da2598a21;hp=13e939b0691726035beb6e3478689b37f4bd834d;hpb=3f81a72dbdc7f2ffb17cc1ecd4e6a39270891c77;p=helm.git diff --git a/helm/http_getter/Makefile b/helm/http_getter/Makefile index 13e939b06..bf0c96ac8 100644 --- a/helm/http_getter/Makefile +++ b/helm/http_getter/Makefile @@ -1,89 +1,25 @@ VERSION = 0.3.0 NAME = http_getter -DISTDIR = http-getter-$(VERSION) -EXTRA_DIST = AUTHORS COPYING NEWS README BUGS -DOCS = doc/http_getter.conf.xml.sample - -REQUIRES = \ - http dbm pcre pxp shell threads zip \ - helm-logger +REQUIRES = helm-getter helm-logger helm-registry COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o OCAMLFIND = ocamlfind -OCAMLC = $(OCAMLFIND) ocamlc -thread $(COMMONOPTS) -OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(COMMONOPTS) -OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS) -OCAMLDOC = \ - ocamldoc \ - $(shell $(OCAMLFIND) query -i-format http) \ - $(shell $(OCAMLFIND) query -i-format dbm) \ - $(shell $(OCAMLFIND) query -i-format pcre) \ - $(shell $(OCAMLFIND) query -i-format pxp) \ - $(shell $(OCAMLFIND) query -i-format shell) \ - $(shell $(OCAMLFIND) query -i-format threads) \ - $(shell $(OCAMLFIND) query -i-format zip) -MODULES = \ - http_getter_debugger threadSafe \ - http_getter_types http_getter_misc http_getter_const \ - http_getter_env http_getter_common http_getter_map \ - http_getter_cache http_getter - -OBJS = $(patsubst %,%.cmo,$(MODULES)) -OBJSOPT = $(patsubst %,%.cmx,$(MODULES)) +OCAMLC = $(OCAMLFIND) ocamlc -g $(COMMONOPTS) +OCAMLOPT = $(OCAMLFIND) opt $(COMMONOPTS) all: byte byte: $(NAME) opt: $(NAME).opt world: byte opt -include .depend -depend: - $(OCAMLDEP) *.ml *.mli > .depend - -%.cmi: %.mli - $(OCAMLC) -c $< -%.cmo: %.ml %.cmi - $(OCAMLC) -c $< -%.cmx: %.ml %.cmi - $(OCAMLOPT) -c $< -include Makefile.overrides -$(NAME).cmo: $(NAME).ml - $(OCAMLC) -c $< -$(NAME).cmx: $(NAME).ml - $(OCAMLOPT) -c $< -$(NAME): $(OBJS) main.ml +$(NAME): main.ml $(OCAMLC) -linkpkg -thread -o $@ $^ -$(NAME).opt: $(OBJSOPT) main.ml +$(NAME).opt: main.ml $(OCAMLOPT) -linkpkg -thread -o $@ $^ -http_getter.dot: *.ml *.mli - $(OCAMLDOC) -dot -o $@ $^ - distclean: clean clean: rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot -dist: distclean depend - if [ -d $(DISTDIR) ]; then rm -rf $(DISTDIR); else true; fi - mkdir $(DISTDIR)/ - mkdir $(DISTDIR)/doc - cp $(DOCS) $(DISTDIR)/doc/ - for m in $(patsubst %, %.mli, $(MODULES)); do \ - if [ "$$m" != "http_getter_types.mli" ]; then \ - cp $$m $(DISTDIR)/; \ - fi; \ - done - cp \ - $(patsubst %, %.ml, $(MODULES)) \ - $(NAME).ml \ - Makefile Makefile.overrides .depend \ - $(DISTDIR)/ - cp $(EXTRA_DIST) $(DISTDIR)/ - tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/ - rm -rf $(DISTDIR)/ -distcheck: dist - tar xvzf $(DISTDIR).tar.gz - cd $(DISTDIR); make - rm -rf $(DISTDIR) -.PHONY: all byte dist distcheck opt world depend clean distclean +.PHONY: all byte opt world clean distclean