Explorar o código

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 <[email protected]>
(cherry picked from commit bef528185d7b2e6bfa4ae5ec4bfd4808e1dcf28f)
Vincent Stemen %!s(int64=15) %!d(string=hai) anos
pai
achega
c4da41b1fc
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      Makefile.defs

+ 3 - 4
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)