linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH can-utils] Don't overwrite PREFIX and DESTDIR when provided via the environment
@ 2013-08-17 19:28 Uwe Kleine-König
  2013-08-17 19:32 ` Marc Kleine-Budde
  0 siblings, 1 reply; 11+ messages in thread
From: Uwe Kleine-König @ 2013-08-17 19:28 UTC (permalink / raw)
  To: linux-can

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>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c3e6d9c..2f79ee7 100644
--- 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
 
-- 
1.8.4.rc0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-08-20  7:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-17 19:28 [PATCH can-utils] Don't overwrite PREFIX and DESTDIR when provided via the environment Uwe Kleine-König
2013-08-17 19:32 ` Marc Kleine-Budde
2013-08-18 11:02   ` Oliver Hartkopp
2013-08-18 20:49     ` Uwe Kleine-König
2013-08-18 21:36       ` Marc Kleine-Budde
2013-08-19  8:24         ` Marc Kleine-Budde
2013-08-19  8:37         ` Uwe Kleine-König
2013-08-19 17:23           ` Oliver Hartkopp
2013-08-19 19:16             ` Marc Kleine-Budde
2013-08-20  5:29               ` Oliver Hartkopp
2013-08-20  6:55                 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).