summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>2016-12-22 16:15:56 -0600
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>2017-01-18 17:01:32 -0600
commitb736b318fd0376389a355940bb75c6c97b3a1fe0 (patch)
treef94f2182732ee3d10f031920818518a0c1fb751b
parent3a09dbde3a5cc59f458791a450a2cc2bb989f46f (diff)
downloadopkg-utils-b736b318fd0376389a355940bb75c6c97b3a1fe0.tar.gz
opkg-utils-b736b318fd0376389a355940bb75c6c97b3a1fe0.tar.bz2
opkg-utils-b736b318fd0376389a355940bb75c6c97b3a1fe0.zip
Makefile: prefer defined bindir and mandir as installation dirs
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 92b45f1..69a1c5a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@ UTILS = opkg-build opkg-unbuild opkg-make-index opkg.py opkg-list-fields \
MANPAGES = opkg-build.1
-DESTDIR=
-PREFIX=/usr/local
-bindir=$(PREFIX)/bin
-mandir=$(PREFIX)/man
+DESTDIR =
+PREFIX ?= /usr/local
+bindir ?= $(PREFIX)/bin
+mandir ?= $(PREFIX)/man
.SUFFIXES: .1