Module: sip-router
Branch: kamailio_3.0
Commit: c4da41b1fce9819df15e5c5f9dafa145392af8b6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c4da41b…
Author: Vincent Stemen <vince.lists(a)ngtek.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 16:40:41 2010 +0200
makefile: fix $DESTDIR
This fixes Makefile.defs to properly handle $DESTDIR as a base
installation directory for packaging, etc (equivalent to BASEDIR).
Signed-off-by: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
(cherry picked from commit bef528185d7b2e6bfa4ae5ec4bfd4808e1dcf28f)
---
Makefile.defs | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs
index 95dad34..2c79eb4 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -268,9 +268,8 @@ endif
# Doxygen directory
doxygen_dir=doc/doxygen
- # install location
-DESTDIR ?= $(LOCALBASE)
-PREFIX ?= $(DESTDIR)
+# install location
+PREFIX ?= $(LOCALBASE)
prefix = $(PREFIX)
# install path is $(basedir) $(prefix)
# example:
@@ -278,7 +277,7 @@ prefix = $(PREFIX)
# basedir=/tmp
# prefix=/usr/local
-BASEDIR ?=
+BASEDIR ?= $(DESTDIR)
basedir = $(BASEDIR)
# install prefixes for various stuff
cfg_prefix = $(basedir)$(prefix)