ll-scope (0.2.1-2.1) destdir

Summary

 Makefile |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

#! /bin/sh -e
## destdir.dpatch by Free Ekanayaka <free@agnula.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"

case "$1" in
    -patch) patch -p1 ${patch_opts} < $0;;
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
    *)
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
        exit 1;;
esac

exit 0

@DPATCH@
--- a/Makefile	2007-06-04 23:48:24.000000000 +0200
+++ b/Makefile	2007-06-04 23:49:24.000000000 +0200
@@ -1,4 +1,5 @@
-INSTALL_DIR=/usr/local/lib/dssi
+DESTDIR=
+INSTALL_DIR=/usr/lib/dssi
 
 all:	ll-scope.so ll-scope_gtk
 
@@ -16,7 +17,7 @@
 	rm -f ll-scope.so ll-scope_gtk *.o
 
 install:	ll-scope.so ll-scope_gtk
-	mkdir -p $(INSTALL_DIR)
-	cp -f ll-scope.so $(INSTALL_DIR)
-	mkdir -p $(INSTALL_DIR)/ll-scope
-	cp -f ll-scope_gtk ll-scope.glade pixmaps/icon.png $(INSTALL_DIR)/ll-scope/
+	mkdir -p $(DESTDIR)$(INSTALL_DIR)
+	cp -f ll-scope.so $(DESTDIR)$(INSTALL_DIR)
+	mkdir -p $(DESTDIR)$(INSTALL_DIR)/ll-scope
+	cp -f ll-scope_gtk ll-scope.glade pixmaps/icon.png $(DESTDIR)$(INSTALL_DIR)/ll-scope/