mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
utils: allow install locations to be overridden in Makefile
Instead of setting those variables unconditionally, set them if they
aren't externally set by environment variables. This will allow for usages
like DESTDIR=/some/other/dir make install in the utils directory.
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
(cherry picked from commit 2747013d9b
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
47096faadd
commit
6089302f0b
1 changed files with 4 additions and 4 deletions
|
@ -39,10 +39,10 @@ all: docs
|
|||
docs: ${MANPAGES} ${HTMLMANPAGES}
|
||||
|
||||
# need some better way of determining this
|
||||
DESTDIR=/
|
||||
BINDIR=${DESTDIR}/usr/sbin
|
||||
CONFDIR=${DESTDIR}/etc/apparmor
|
||||
PYPREFIX=/usr
|
||||
DESTDIR?=/
|
||||
BINDIR?=${DESTDIR}/usr/sbin
|
||||
CONFDIR?=${DESTDIR}/etc/apparmor
|
||||
PYPREFIX?=/usr
|
||||
|
||||
|
||||
po/${NAME}.pot: ${TOOLS} ${PYMODULES}
|
||||
|
|
Loading…
Add table
Reference in a new issue