]> matita.cs.unibo.it Git - helm.git/commitdiff
- create also libxxx.so symlink in ocaml stublibs directory
authorStefano Zacchiroli <zack@upsilon.cc>
Fri, 24 Jan 2003 12:49:48 +0000 (12:49 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Fri, 24 Jan 2003 12:49:48 +0000 (12:49 +0000)
- installs also new GMathViewAux stuff

helm/DEVEL/lablgtkmathview/Makefile.in

index 2d0a519eae9a2626bb76d06dd0c310d0e8054e9b..7b140e0f3a7fbaf07bae2fb943d2ebb98fb1cf0f 100644 (file)
@@ -5,9 +5,12 @@ PREFIX =
 OBJECTS_C = ml_gtk_mathview.o
 OBJECTS =  gtk_mathview.cmo gtkMathView.cmo gMathView.cmo gMathViewAux.cmo
 OBJECTS_OPT = gtkMathView.cmx gtk_mathview.cmx gMathView.cmx gMathViewAux.cmx
 OBJECTS_C = ml_gtk_mathview.o
 OBJECTS =  gtk_mathview.cmo gtkMathView.cmo gMathView.cmo gMathViewAux.cmo
 OBJECTS_OPT = gtkMathView.cmx gtk_mathview.cmx gMathView.cmx gMathViewAux.cmx
-INST = META gMathView.mli gMathView.cmi gtkMathView.cmi gtk_mathview.cmi gMathViewAux.cmi
+INST = \
+       META gMathView.mli gMathView.cmi gtkMathView.cmi gtk_mathview.cmi       \
+       gMathViewAux.cmi gMathViewAux.mli
 DIST_FILES = \
 DIST_FILES = \
-  Makefile.in configure.in gMathView.ml gMathView.mli gMathViewAux.ml gtkMathView.ml \
+  Makefile.in configure.in gMathView.ml gMathView.mli  \
+  gMathViewAux.ml gMathViewAux.mli gtkMathView.ml \
   gtk_mathview.ml ml_gtk_mathview.c META.in .depend debian/ test/ \
   configure lablgtkmathview.spec lablgtkmathview.spec.in
 DIST_DIR = $(PACKAGE)-$(VERSION)
   gtk_mathview.ml ml_gtk_mathview.c META.in .depend debian/ test/ \
   configure lablgtkmathview.spec lablgtkmathview.spec.in
 DIST_DIR = $(PACKAGE)-$(VERSION)
@@ -19,8 +22,9 @@ SHARED_LIBS = \
        $(shell gtkmathview-config --libs | sed 's/-rdynamic//g') \
        -lmlgdome
 
        $(shell gtkmathview-config --libs | sed 's/-rdynamic//g') \
        -lmlgdome
 
-OCAMLC = ocamlfind ocamlc
-OCAMLOPT = ocamlfind ocamlopt
+OCAMLFIND = ocamlfind
+OCAMLC = $(OCAMLFIND) ocamlc
+OCAMLOPT = $(OCAMLFIND) ocamlopt
 OCAMLDEP = ocamldep
 OCAMLMKLIB = ocamlmklib
 OCAML_STUB_DIR = @OCAML_STUB_DIR@
 OCAMLDEP = ocamldep
 OCAMLMKLIB = ocamlmklib
 OCAML_STUB_DIR = @OCAML_STUB_DIR@
@@ -32,8 +36,10 @@ TESTDIR = ./test
 TMPDIR = .test
 TMPPKGDIR = $(TMPDIR)/$(PACKAGE)
 
 TMPDIR = .test
 TMPPKGDIR = $(TMPDIR)/$(PACKAGE)
 
-all: $(ARCHIVE).cma $(TESTDIR)/test
-opt: $(ARCHIVE).cmxa $(TESTDIR)/test.opt
+all: $(ARCHIVE).cma
+opt: $(ARCHIVE).cmxa
+test: $(TESTDIR)/test
+test.opt: $(TESTDIR)/test.opt
 world: all opt
 
 dist:
 world: all opt
 
 dist:
@@ -45,6 +51,12 @@ dist:
        tar cvfz $(DIST_DIR).tar.gz $(DIST_DIR)/
        rm -rf $(DIST_DIR)/
 
        tar cvfz $(DIST_DIR).tar.gz $(DIST_DIR)/
        rm -rf $(DIST_DIR)/
 
+deb: dist
+       if [ -d $(DIST_DIR)/ ]; then rm -rf $(DIST_DIR); else true; fi
+       tar xvzf $(DIST_DIR).tar.gz
+       (cd $(DIST_DIR)/ && debuild)
+       rm -rf $(DIST_DIR)
+
 ml_gtk_mathview.o: ml_gtk_mathview.c
        gcc -c -I$(INCLUDEDIR) -fPIC `ocamlfind query -i-format lablgtk` `glib-config --cflags` `gtk-config --cflags` `gtkmathview-config --cflags` `gdome-config --cflags` `ocamlfind query -i-format gdome2` $<
 
 ml_gtk_mathview.o: ml_gtk_mathview.c
        gcc -c -I$(INCLUDEDIR) -fPIC `ocamlfind query -i-format lablgtk` `glib-config --cflags` `gtk-config --cflags` `gtkmathview-config --cflags` `gdome-config --cflags` `ocamlfind query -i-format gdome2` $<
 
@@ -81,9 +93,13 @@ $(TESTDIR)/test.opt: $(OBJECTS_C) $(ARCHIVE).a $(ARCHIVE).cmxa $(TESTDIR)/test.m
 install:
        test ! -f $(ARCHIVE).cmxa || extra="$(ARCHIVE).a $(ARCHIVE).cmxa" ; \
        if [ "$(PREFIX)" = "" ]; then \
 install:
        test ! -f $(ARCHIVE).cmxa || extra="$(ARCHIVE).a $(ARCHIVE).cmxa" ; \
        if [ "$(PREFIX)" = "" ]; then \
-               ocamlfind install $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra; \
+               $(OCAMLFIND) install    \
+                       $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra;  \
+               ln -fs $(DLL) $(shell $(OCAMLFIND) printconf destdir)/stublibs/lib$(ARCHIVE).so;        \
        else \
        else \
-               ocamlfind install -destdir $(PREFIX) $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra; \
+               $(OCAMLFIND) install -destdir $(PREFIX) \
+                       $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra; \
+               ln -fs $(DLL) $(PREFIX)/stublibs/lib$(ARCHIVE).so;      \
        fi
 
 uninstall:
        fi
 
 uninstall: