X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FMakefile.in;h=bbf534b325967ccee89dc0b6ce8abd00d25d4d69;hb=bb49c457d64878ed9611656f620548b5151e5dbd;hp=f73436ba014e093957e5b1f613dbba947e380a6a;hpb=de9a83f286eee12117fb478ea2db18f7faebac9a;p=helm.git diff --git a/helm/matita/Makefile.in b/helm/matita/Makefile.in index f73436ba0..bbf534b32 100644 --- a/helm/matita/Makefile.in +++ b/helm/matita/Makefile.in @@ -41,14 +41,14 @@ CCMOS = \ matitaDisambiguator.cmo \ matitaEngine.cmo -LIB_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES)) all: matita matitac cicbrowser ifeq ($(HAVE_OCAMLOPT),yes) CMXS = $(patsubst %.cmo,%.cmx,$(CMOS)) CCMXS = $(patsubst %.cmo,%.cmx,$(CCMOS)) -LIBX_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES)) +LIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES)) +LIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES)) opt: matita.opt matitac.opt cicbrowser.opt else opt: @@ -93,11 +93,32 @@ distclean: clean rm -f matita.glade.bak matita.gladep.bak rm -rf autom4te.cache/ +tests: matitac + for i in tests/*.ma; do (./matitac $$i 2> /dev/null > /dev/null && echo "[OK] $$i") || echo "[KO] $$i"; done +.PHONY: tests + +tags: TAGS +.PHONY: TAGS +TAGS: + cd ..; otags -vi -r ocaml/ matita/ + #.depend: matitaGeneratedGui.ml matitaGeneratedGui.mli *.ml *.mli -.depend: +depend: $(OCAMLDEP) *.ml *.mli > .depend include .depend .PHONY: all opt clean distclean depend +$(CMOS): $(LIB_DEPS) +$(CMOS:%.cmo=%.cmx): $(LIBX_DEPS) + +ifeq ($(MAKECMDGOALS),all) + $(CMOS:%.cmo=%.cmi): $(LIB_DEPS) +endif +ifeq ($(MAKECMDGOALS),) + $(CMOS:%.cmo=%.cmi): $(LIB_DEPS) +endif +ifeq ($(MAKECMDGOALS),opt) + $(CMOS:%.cmo=%.cmi): $(LIBX_DEPS) +endif