summaryrefslogtreecommitdiff
blob: 5c68c0c15a2d1a93d6ae3fff13ccfa123c549d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: ocamlgraph-0.99b/Makefile.in
===================================================================
--- ocamlgraph-0.99b.orig/Makefile.in
+++ ocamlgraph-0.99b/Makefile.in
@@ -208,10 +208,14 @@ install-byte: 
 install-opt: install-byte
 	cp -f graph$(LIBEXT) graph.cmx $(CMXA) "$(OCAMLLIB)"
 
+ifneq ($(OCAMLOPT),no)
+INSTALL_OPT=graph$(LIBEXT) graph.cmx $(CMXA)
+endif
+
 install-findlib: META
 ifdef OCAMLFIND
-	$(OCAMLFIND) install ocamlgraph META *.mli \
-		graph$(LIBEXT) graph.cmx graph.cmo graph.cmi $(CMA) $(CMXA)
+	$(OCAMLFIND) install ocamlgraph META src/*.mli lib/*.mli \
+		$(INSTALL_OPT) graph.cmo graph.cmi $(CMA)
 endif
 
 # documentation