can-utils: Don't overwrite PREFIX and DESTDIR when provided via the environment
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 17 Aug 2013 19:28:10 +0000 (21:28 +0200)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sun, 18 Aug 2013 10:49:50 +0000 (12:49 +0200)
For creating a Debian package providing PREFIX and DESTDIR via the
environment is the easiest option. So use ?= to assign these two
variables to honor the values in the environment.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Makefile

index c3e6d9c..2f79ee7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,8 @@
 #
 #  Send feedback to <linux-can@vger.kernel.org>
 
-DESTDIR =
-PREFIX = /usr/local
+DESTDIR ?=
+PREFIX ?= /usr/local
 
 MAKEFLAGS = -k