aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2018-11-09 10:20:48 +0100
committerJean Delvare <jdelvare@suse.de>2018-11-09 10:20:48 +0100
commit4700d21bb366a479ee67d1d734747b68dab85539 (patch)
tree3be5ae8bfa6874d65518856b7697f82f0e14cf7f
parentba49ca4d7c69b85e15c20b314216ec4590c35500 (diff)
downloadi2c-tools-4700d21bb366a479ee67d1d734747b68dab85539.tar.gz
Make DESTDIR overridable
Allow the user to set the installation root as an alternative to "/". Contributed by Per Olav Kroka. Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2056a53..37d9011 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-DESTDIR =
+DESTDIR ?=
prefix = /usr/local
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin