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: make_still_working~7429 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=1243f49dd307b6e04181b52b64576d872a4eb5c7;p=helm.git links to .opt are now generated in the world target --- diff --git a/helm/software/matita/Makefile b/helm/software/matita/Makefile index 28971ecf8..27febffb7 100644 --- a/helm/software/matita/Makefile +++ b/helm/software/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