[Pkg-ocaml-maint-commits] [SCM] core packaging branch, master, updated. b8f2462fac28be994600d355b4c885c419fec5a9

Stefano Zacchiroli zack at upsilon.cc
Sat May 3 20:15:12 UTC 2008


The following commit has been merged in the master branch:
commit b8f2462fac28be994600d355b4c885c419fec5a9
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Sat May 3 22:14:10 2008 +0200

    first draft of working debian/rules

diff --git a/debian/rules b/debian/rules
index ed23cc7..590e31d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,19 @@ include /usr/share/cdbs/1/class/ocaml.mk
 LIB_NAME = core
 DLL_PKG_NAME = lib$(LIB_NAME)-ocaml
 DEV_PKG_NAME = lib$(LIB_NAME)-ocaml-dev
+DEST_DIR = $(CURDIR)/debian/$(DEV_PKG_NAME)$(OCAML_STDLIB_DIR)
+DEST_DLL_DIR = $(CURDIR)/debian/$(DLL_PKG_NAME)$(OCAML_DLL_DIR)
 
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
 DEB_MAKE_BUILD_TARGET = all
-DEB_MAKE_INSTALL_TARGET = install OCAMLFIND_INSTFLAGS="-destdir $(CURDIR)/debian/$(DEV_PKG_NAME)$(OCAML_STDLIB_DIR)"
+DEB_MAKE_INSTALL_TARGET = install OCAMLFIND_INSTFLAGS="-destdir $(DEST_DIR) -ldconf ignore"
+else
+DEB_MAKE_BUILD_TARGET = byte
+DEB_MAKE_INSTALL_TARGET = libinstall-byte-code OCAMLFIND_INSTFLAGS="-destdir $(DEST_DIR) -ldconf ignore"
+endif
+
+build/$(DEV_PKG_NAME)::
+	mkdir -p $(DEST_DIR) $(DEST_DLL_DIR)
+install/$(DEV_PKG_NAME)::
+	mv $(DEST_DIR)/core/*.so $(DEST_DLL_DIR)
 

-- 
core packaging



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