X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FMakefile;h=d668434534736a4119bad4414da72a32b43977d5;hb=4dbc13884c2bce99aff15890f65370ca85f388ad;hp=7ce96c052cf277508b4e0b9c1912d9aaaa6fb89f;hpb=296b163c8a2b09a6f87cbab15c2016de92fc8e70;p=helm.git diff --git a/helm/gTopLevel/Makefile b/helm/gTopLevel/Makefile index 7ce96c052..d66843453 100644 --- a/helm/gTopLevel/Makefile +++ b/helm/gTopLevel/Makefile @@ -1,9 +1,8 @@ BIN_DIR = /usr/local/bin REQUIRES = lablgtkmathview helm-cic_textual_parser helm-tex_cic_textual_parser \ - helm-cic_proof_checking helm-xml gdome2-xslt helm-cic_unification \ - helm-mathql helm-mathql_interpreter helm-mathql_generator \ - helm-tactics threads hbugs-client mathml-editor \ - helm-cic_transformations + gdome2-xslt helm-mathql_interpreter helm-mathql_generator \ + helm-tactics hbugs-client mathml-editor helm-cic_transformations \ + helm-cic_textual_parser2 PREDICATES = "gnome,init,glade" OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o OCAMLFIND = ocamlfind @@ -14,8 +13,8 @@ OCAMLDEP = ocamldep -pp camlp4o LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES)) LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES)) -all: styles gTopLevel -opt: styles gTopLevel.opt +all: styles gTopLevel regtest +opt: styles gTopLevel.opt regtest.opt start: $(MAKE) -C ../hbugs/ start @@ -23,13 +22,18 @@ stop: $(MAKE) -C ../hbugs/ stop INTERFACE_FILES = \ - proofEngine.mli logicalOperations.mli disambiguate.mli \ - termEditor.mli texTermEditor.mli xmlDiff.mli termViewer.mli \ - invokeTactics.mli hbugs.mli + proofEngine.mli logicalOperations.mli oldDisambiguate.mli \ + disambiguatingParser.mli termEditor.mli texTermEditor.mli xmlDiff.mli \ + chosenTransformer.mli termViewer.mli invokeTactics.mli hbugs.mli \ + chosenTermEditor.mli -DEPOBJS = $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) gTopLevel.ml +DEPOBJS = \ + $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \ + gTopLevel.ml regtest.ml batchParser.ml batchParser.mli TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) gTopLevel.cmo +REGTESTOBJS = \ + $(INTERFACE_FILES:%.mli=%.cmo) batchParser.cmo regtest.cmo $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES) $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT) @@ -47,10 +51,14 @@ depend: $(OCAMLDEP) $(DEPOBJS) > .depend gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES) - $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS) - + $(OCAMLC) -linkpkg -o $@ $(TOPLEVELOBJS) gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT) - $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx) + $(OCAMLOPT) -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx) + +regtest: $(REGTESTOBJS) $(LIBRARIES) + $(OCAMLC) -linkpkg -o $@ $(REGTESTOBJS) +regtest.opt: $(REGTESTOBJS:.cmo=.cmx) $(LIBRARIES) + $(OCAMLOPT) -linkpkg -o $@ $(REGTESTOBJS:.cmo=.cmx) .SUFFIXES: .ml .mli .cmo .cmi .cmx .ml.cmo: @@ -64,15 +72,22 @@ $(TOPLEVELOBJS): $(LIBRARIES) $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT) clean: - rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt - + rm -f *.cm[iox] *.o gTopLevel{,.opt} regtest{,.opt} install: cp gTopLevel gTopLevel.opt $(BIN_DIR) - uninstall: rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt -.PHONY: install uninstall clean +.PHONY: install uninstall clean test + +TESTS := $(patsubst %, %.test, $(wildcard tests/*.cic)) +gentest: $(TESTS) +cleantest: + rm -f $(TESTS) +tests/%.cic.test: tests/%.cic + time ./regtest -gen $< +test: + time ./regtest $(TESTS) ifneq ($(MAKECMDGOALS), depend) include .depend