[Pkg-ocaml-maint-commits] [SCM] sexplib310 packaging branch, master, updated. 61f5ec4f754c23a5ecc3c0e73c88873144efd7d7

Stefano Zacchiroli zack at upsilon.cc
Sat May 3 13:40:11 UTC 2008


The following commit has been merged in the master branch:
commit fd22e41502a0dbca5e85f99f5ba2844433c29d3b
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Sat May 3 15:36:17 2008 +0200

    make targets for byte/opt split

diff --git a/debian/rules b/debian/rules
index b6c49eb..8adae88 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,13 @@ LIB_NAME = sexplib
 PKG_NAME = lib$(LIB_NAME)-camlp4-dev
 DESTDIR = $(CURDIR)/debian/$(PKG_NAME)$(OCAML_STDLIB_DIR)
 
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
 DEB_MAKE_BUILD_TARGET = all
 DEB_MAKE_INSTALL_TARGET = install OCAMLFIND_INSTFLAGS="-destdir $(DESTDIR)"
+else
+DEB_MAKE_BUILD_TARGET = byte
+DEB_MAKE_INSTALL_TARGET = libinstall-byte-code OCAMLFIND_INSTFLAGS="-destdir $(DESTDIR)"
+endif
 
 build/$(PKG_NAME)::
 	mkdir -p $(DESTDIR)

-- 
sexplib310 packaging



More information about the Pkg-ocaml-maint-commits mailing list