X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhbugs%2Fcommon%2FMakefile;h=3a3d96821d8a2f8f0b1f5e622254569590a761a0;hb=d2c60bae1c4badba0a0f29e3fd2faed6d3a1869e;hp=4055f88c985df77c1e6f8116e2d611e0bb35c3f1;hpb=3c1a6c534877f7b7266809e4d92de02c7f1ee9d4;p=helm.git diff --git a/helm/hbugs/common/Makefile b/helm/hbugs/common/Makefile index 4055f88c9..3a3d96821 100644 --- a/helm/hbugs/common/Makefile +++ b/helm/hbugs/common/Makefile @@ -1,10 +1,20 @@ -REQUIRES = pcre pxp +REQUIRES = helm-xml helm-pxp pcre pxp http COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o -OCAMLC = ocamlfind ocamlc $(COMMONOPTS) -OCAMLOPT = ocamlfind ocamlopt $(COMMONOPTS) -OCAMLDEP = ocamlfind ocamldep $(COMMONOPTS) +OCAMLFIND = ocamlfind +OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS) +OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMONOPTS) +OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS) +OCAMLDOC = \ + ocamldoc \ + $(shell $(OCAMLFIND) query -i-format helm-xml) \ + $(shell $(OCAMLFIND) query -i-format helm-pxp) \ + $(shell $(OCAMLFIND) query -i-format pcre) \ + $(shell $(OCAMLFIND) query -i-format pxp-engine) \ + $(shell $(OCAMLFIND) query -i-format threads) \ + $(shell $(OCAMLFIND) query -i-format http) MODULES = \ - hbugs_types threadSafe hbugs_misc hbugs_id_generator hbugs_messages + hbugs_types threadSafe hbugs_misc \ + hbugs_common hbugs_id_generator hbugs_messages OBJS = $(patsubst %,%.cmo,$(MODULES)) OBJSOPT = $(patsubst %,%.cmx,$(MODULES)) @@ -14,6 +24,9 @@ byte: $(OBJS) opt: $(OBJSOPT) world: byte opt +hbugs_common.dot: *.ml *.mli + $(OCAMLDOC) -dot -o $@ $^ + include .depend depend: $(OCAMLDEP) *.ml *.mli > .depend