blob: cb980b6f19dcda70c12489a58f374d095ac5f99b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Index: ocamlgraph-1.8.6/Makefile.in
===================================================================
--- ocamlgraph-1.8.6.orig/Makefile.in
+++ ocamlgraph-1.8.6/Makefile.in
@@ -421,21 +421,25 @@ ifdef DESTDIR
OCAMLFINDDEST := -destdir $(DESTDIR)
endif
+ifneq ($(WANT_OCAMLOPT),no)
+INSTALL_OPT=graph$(LIBEXT) graph.cmx $(CMXA)
+INSTALL_GTK_OPT=$(VIEWER_CMXLIB) $(VIEWER_CMXLIB:.cmx=.o) $(DGRAPH_CMXLIB) $(DGRAPH_CMXLIB:.cmx=.o) graph$(OBJEXT)
+endif
+
install-findlib: META
ifdef OCAMLFIND
-ifeq (@LABLGNOMECANVAS@,yes)
+ifeq ($(WANT_GTK),yes)
$(OCAMLFIND) install $(OCAMLFINDDEST) ocamlgraph META \
$(SRCDIR)/*.mli $(VIEWER_DIR)/*.mli $(DGRAPH_DIR)/*.mli \
- graph$(OBJEXT) graph$(LIBEXT) graph.cmx graph.cmo graph.cmi \
- $(CMA) $(CMXA) \
- $(VIEWER_CMXLIB) $(VIEWER_CMOLIB) $(VIEWER_CMILIB) \
- $(VIEWER_CMXLIB:.cmx=.o) \
- $(DGRAPH_CMXLIB) $(DGRAPH_CMOLIB) $(DGRAPH_CMILIB) \
- $(DGRAPH_CMXLIB:.cmx=.o)
+ $(INSTALL_OPT) graph.cmo graph.cmi \
+ $(CMA) \
+ $(INSTALL_GTK_OPT) \
+ $(VIEWER_CMOLIB) $(VIEWER_CMILIB) \
+ $(DGRAPH_CMOLIB) $(DGRAPH_CMILIB)
else
$(OCAMLFIND) install $(OCAMLFINDDEST) ocamlgraph META \
$(SRCDIR)/*.mli $(VIEWER_DIR)/*.mli $(DGRAPH_DIR)/*.mli \
- graph$(LIBEXT) graph.cmx graph.cmo graph.cmi $(CMA) $(CMXA)
+ $(INSTALL_OPT) graph.cmo graph.cmi $(CMA)
endif
endif
|