From 82d95825fb5d00168f2a7313d1cb7932d6f1dd14 Mon Sep 17 00:00:00 2001 From: Jacques-Pascal Deplaix Date: Mon, 9 Oct 2017 17:43:10 +0200 Subject: [PATCH] Install graph.cmxs using ocamlfind --- META.in | 2 ++ Makefile.in | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/META.in b/META.in index 0695b62e..b0b5f52f 100644 --- a/META.in +++ b/META.in @@ -2,7 +2,9 @@ version = "VERSION" description = "Generic Graph Library" requires="" archive(byte) = "CMA" +archive(byte,plugin) = "CMA" archive(native) = "CMXA" +archive(native,plugin) = "CMXS" package "dgraph" ( exists_if = "dgraph.cmi" diff --git a/Makefile.in b/Makefile.in index 8beb4957..2683962c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -433,7 +433,7 @@ endif ifeq ($(OCAMLBEST),byte) OCAMLFIND_OPT_FILES= else - OCAMLFIND_OPT_FILES=graph$(OBJEXT) graph$(LIBEXT) graph.cmx $(CMXA) + OCAMLFIND_OPT_FILES=graph$(OBJEXT) graph$(LIBEXT) graph.cmx $(CMXA) $(CMXS) ifeq (@LABLGNOMECANVAS@,yes) OCAMLFIND_OPT_FILES+=\ $(VIEWER_CMXLIB) $(VIEWER_CMXLIB:.cmx=.o) \ @@ -460,7 +460,7 @@ endif endif META: META.in Makefile - sed -e s/VERSION/$(VERSION)/ -e s/CMA/$(CMA)/ -e s/CMXA/$(CMXA)/ \ + sed -e s/VERSION/$(VERSION)/ -e s/CMA/$(CMA)/ -e s/CMXA/$(CMXA)/ -e s/CMXS/$(CMXS)/ \ $@.in > $@ # documentation