[Pkg-ocaml-maint-commits] [SCM] sexplib310 packaging branch, master, updated. 355e03c899139d9e1b26728db757b6d8e53c5452

Stefano Zacchiroli zack at upsilon.cc
Sat May 3 13:08:45 UTC 2008


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

    set proper DESTDIR for library installation in the .deb

diff --git a/debian/rules b/debian/rules
index 470b02e..b6c49eb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,12 @@ include /usr/share/cdbs/1/rules/dpatch.mk
 include /usr/share/cdbs/1/class/ocaml.mk
 
 LIB_NAME = sexplib
-DLL_PKG_NAME = lib$(LIB_NAME)-ocaml
-DEV_PKG_NAME = lib$(LIB_NAME)-ocaml-dev
+PKG_NAME = lib$(LIB_NAME)-camlp4-dev
+DESTDIR = $(CURDIR)/debian/$(PKG_NAME)$(OCAML_STDLIB_DIR)
 
 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 $(DESTDIR)"
+
+build/$(PKG_NAME)::
+	mkdir -p $(DESTDIR)
 

-- 
sexplib310 packaging



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