X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FsearchEngine%2FMakefile;h=2ae59df911656519f35efb5d880ec56672a44c1b;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=809a5abf7f6283c3dfd18fa895825d08bdb2423a;hpb=25bcb9af3fc3ce3cebd369e3cd9f3a704403a173;p=helm.git diff --git a/helm/searchEngine/Makefile b/helm/searchEngine/Makefile index 809a5abf7..2ae59df91 100644 --- a/helm/searchEngine/Makefile +++ b/helm/searchEngine/Makefile @@ -1,29 +1,45 @@ -REQUIRES = http helm-cic_textual_parser2 helm-cic_proof_checking \ - helm-xml gdome2-xslt helm-cic_unification helm-mathql \ - helm-mathql_interpreter helm-mathql_generator helm-logger \ - helm-tex_cic_textual_parser -OCAMLOPTIONS = -thread -package "$(REQUIRES)" -pp camlp4o -I ../gTopLevel +REQUIRES = http helm-cic_textual_parser2 helm-logger helm-tactics +OCAMLOPTIONS = -thread -package "$(REQUIRES)" -pp camlp4o OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS) +OCAMLDEP = ocamlfind ocamldep -package "$(REQUIRES)" -pp camlp4o -GTOPLEVEL_MODULES = oldDisambiguate disambiguatingParser -MODULES = +MODULES = mooglePp +SRCS = $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \ + searchEngine.ml CMOS = $(patsubst %,%.cmo,$(MODULES)) CMXS = $(patsubst %,%.cmx,$(MODULES)) -LIBRARIES = $(patsubst %,../gTopLevel/%.cmo,$(GTOPLEVEL_MODULES)) -LIBRARIES_OPT = $(patsubst %,../gTopLevel/%.cmx,$(GTOPLEVEL_MODULES)) -all: byte +all: byte html world: byte opt byte: searchEngine -opt: searchEngine.opt +opt: searchEngine.opt html -searchEngine: $(LIBRARIES) $(CMOS) searchEngine.ml +.PHONY: html +html: + make -C html/ + +%.cmi: %.mli + $(OCAMLC) -c $< +%.cmo %.cmi: %.ml + $(OCAMLC) -c $< +%.cmx: %.ml + $(OCAMLOPT) -c $< + +searchEngine: $(CMOS) searchEngine.ml $(OCAMLC) -linkpkg -o $@ $^ -searchEngine.opt: $(LIBRARIES_OPT) $(CMXS) searchEngine.ml +searchEngine.opt: $(CMXS) searchEngine.ml $(OCAMLOPT) -linkpkg -o $@ $^ clean: + make -C html/ clean rm -f *.cm[aiox] *.o searchEngine{,.opt} +.PHONY: depend +depend: + $(OCAMLDEP) $(SRCS) > .depend + .PHONY: all opt clean + +include .depend +