X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2FMakefile;h=bf0c96ac863b6f95b77dcaf8880a880b102e7688;hb=c10721e8910fc80786cf668d0f843e3da2598a21;hp=6482ba0bf167ffdde1178a8382417842c560972a;hpb=866249edf202e4fec2c0e3fffdee96782009d6f3;p=helm.git diff --git a/helm/http_getter/Makefile b/helm/http_getter/Makefile index 6482ba0bf..bf0c96ac8 100644 --- a/helm/http_getter/Makefile +++ b/helm/http_getter/Makefile @@ -1,58 +1,25 @@ -VERSION = 0.2.0 +VERSION = 0.3.0 NAME = http_getter -DISTDIR = http-getter-$(VERSION) -REQUIRES = http dbm pcre netclient pxp shell threads zip -COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o -OCAMLC = ocamlfind ocamlc $(COMMONOPTS) -OCAMLOPT = ocamlfind ocamlopt $(COMMONOPTS) -OCAMLDEP = ocamlfind ocamldep $(COMMONOPTS) -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 -OBJS = $(patsubst %,%.cmo,$(MODULES)) -OBJSOPT = $(patsubst %,%.cmx,$(MODULES)) +REQUIRES = helm-getter helm-logger helm-registry +COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o +OCAMLFIND = ocamlfind +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) $(NAME).ml +$(NAME): main.ml $(OCAMLC) -linkpkg -thread -o $@ $^ -$(NAME).opt: $(OBJSOPT) $(NAME).ml +$(NAME).opt: main.ml $(OCAMLOPT) -linkpkg -thread -o $@ $^ distclean: clean clean: - rm -f *.cm[aiox] *.o $(NAME){,.opt} -dist: distclean depend - mkdir $(DISTDIR)/ - cp \ - $(patsubst %, %.ml, $(MODULES)) \ - $(patsubst %, %.mli, $(MODULES)) \ - $(NAME).ml \ - Makefile .depend \ - $(DISTDIR)/ - tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/ - rm -rf $(DISTDIR)/ + rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot -.PHONY: all byte opt world depend clean +.PHONY: all byte opt world clean distclean