From: Enrico Tassi Date: Wed, 5 Apr 2006 15:00:49 +0000 (+0000) Subject: links to .opt are now generated in the world target X-Git-Tag: 0.4.95@7852~1527 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=3160525c13f570858fe43319bb75239f46831f0a;p=helm.git links to .opt are now generated in the world target --- diff --git a/matita/Makefile b/matita/Makefile index 28971ecf8..27febffb7 100644 --- a/matita/Makefile +++ b/matita/Makefile @@ -14,6 +14,9 @@ OCAMLC_FLAGS = $(OCAML_FLAGS) $(OCAML_THREADS_FLAGS) OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLC_FLAGS) $(OCAML_DEBUG_FLAGS) OCAMLOPT = $(OCAMLFIND) opt $(OCAMLC_FLAGS) OCAMLDEP = $(OCAMLFIND) ocamldep $(OCAML_FLAGS) +INSTALL_PROGRAMS= matita matitac +INSTALL_PROGRAMS_LINKS_MATITA= cicbrowser +INSTALL_PROGRAMS_LINKS_MATITAC= matitadep matitamake matitaclean MATITA_FLAGS = -noprofile NODB=false @@ -96,11 +99,18 @@ upx: $(PROGRAMS_UPX) .PHONY: opt upx ifeq ($(HAVE_OCAMLOPT),yes) -world: depend.opt opt +world: depend.opt opt links else world: depend all endif +#links %.opt -> % +links: + $(H)for X in $(INSTALL_PROGRAMS_LINKS_MATITAC) \ + $(INSTALL_PROGRAMS_LINKS_MATITA); do\ + ln -sf $$X.opt $$X;\ + done + matita: matita.ml $(LIB_DEPS) $(CMOS) $(H)echo " OCAMLC $<" $(H)$(OCAMLC) $(PKGS) -linkpkg -o $@ $(CMOS) matita.ml @@ -228,9 +238,6 @@ INSTALL_STUFF = \ LICENSE \ $(NULL) -INSTALL_PROGRAMS= matita matitac -INSTALL_PROGRAMS_LINKS_MATITA= cicbrowser -INSTALL_PROGRAMS_LINKS_MATITAC= matitadep matitamake matitaclean ifeq ($(HAVE_OCAMLOPT),yes) INSTALL_STUFF_BIN = $(INSTALL_PROGRAMS:%=%.opt) else