[Pkg-ocaml-maint-commits] [SCM] pkglab packaging branch, master, updated. debian/1.3-1-15-ge4a1429

Ralf Treinen (none) treinen at debian.
Mon Apr 20 02:19:06 UTC 2009


The following commit has been merged in the master branch:
commit 495031ff9cc1f2b22f69f01b9d76b7eac31cb726
Author: Ralf Treinen <treinen at debian.(none)>
Date:   Mon Apr 20 10:29:26 2009 +0900

    switch again back to Zack's patched Makefile, as upstream sets wronly
    the DESTDIR variable.

diff --git a/Makefile b/Makefile
index 07aae95..46c7156 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ include Makefile.config
 
 OCAMLFIND= ocamlfind 
 PACKAGE=  -linkpkg -package dose2.conduit,dose2.io,dose2.lifetime,dose2.napkin,dose2.packetology,dose2.rapids,ledit
+DESTDIR = /usr/bin
 
 pkglab: dql/dql.cma pkglab.ml
 ifdef	PROFILE
@@ -20,10 +21,11 @@ dql/dql.cmxa:
 	$(MAKE) -C dql dql.cmxa
 
 install:
+	test -d $(DESTDIR) || mkdir -p $(DESTDIR)
 	if [ -x pkglab.opt ] ; then \
-		cp pkglab.opt $(BINDIR)/pkglab ; \
+		cp pkglab.opt $(DESTDIR)/pkglab ; \
 	elif [ -x pkglab ] ; then \
-		cp pkglab $(BINDIR)/pkglab ; \
+		cp pkglab $(DESTDIR)/pkglab ; \
 	else \
 		echo "No executable to install found" ; exit 2 ; \
 	fi

-- 
pkglab packaging



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