X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fhbugs%2Ftutors%2FMakefile;h=a585b0c38b30f186f635dda58ff0a7b4ab3e8d58;hb=02744ec842e0ac8b978feb519247d434ebbe8d67;hp=65c559bd56070d3a3f61500777902344c1dab100;hpb=1f9b11657c822cc762f808e0bfc5f5f2b4fb6ec7;p=helm.git diff --git a/helm/hbugs/tutors/Makefile b/helm/hbugs/tutors/Makefile index 65c559bd5..a585b0c38 100644 --- a/helm/hbugs/tutors/Makefile +++ b/helm/hbugs/tutors/Makefile @@ -1,5 +1,7 @@ METADIR = ../meta -REQUIRES = threads hbugs-common helm-cic_proof_checking helm-tactics helm-getter +REQUIRES = threads hbugs-common helm-cic_proof_checking helm-getter \ + helm-cic_textual_parser \ + helm-mathql helm-mathql_interpreter helm-tactics COMMONOPTS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" OCAMLFIND = ocamlfind OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS) @@ -19,6 +21,9 @@ GENERATED_TUTORS_SRC = $(patsubst %,%.ml,$(GENERATED_TUTORS)) COMMON = hbugs_deity.cmo hbugs_tutors_common.cmo COMMON_OPT = $(patsubst %.cmo,%.cmx,$(COMMON)) +DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES)) +DEPSOPT = $(shell $(OCAMLFIND) query -recursive -predicates native -format "%d/%a" $(REQUIRES)) + all: byte world: byte opt byte: $(TUTORS) @@ -30,10 +35,10 @@ stop: $(GENERATED_TUTORS_SRC): $(TUTORS_TEMPLATE) $(TUTORS_INDEX) $(BUILD_TUTORS) -%_tutor: $(COMMON) %_tutor.ml - $(OCAMLC) $(LINK_OPTIONS) -o $@ $^ -%_tutor.opt: $(COMMON_OPT) %_tutor.ml - $(OCAMLOPT) $(LINK_OPTIONS) -o $@ $^ +%_tutor: $(DEPS) $(COMMON) %_tutor.ml + $(OCAMLC) $(LINK_OPTIONS) -o $@ $(COMMON) $*_tutor.ml +%_tutor.opt: $(DEPSOPT) $(COMMON_OPT) %_tutor.ml + $(OCAMLOPT) $(LINK_OPTIONS) -o $@ $(COMMON_OPT) $*_tutor.ml %.cmi: %.mli $(OCAMLC) -c $<