All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] build: make PREFIX overwritable on the commandline
@ 2017-09-22 21:25 Uwe Kleine-König
  2017-09-23 11:20 ` Christopher Li
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2017-09-22 21:25 UTC (permalink / raw)
  To: linux-sparse

This way I can just use

	make install PREFIX=/usr

on the command line to install sparse into the system.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d0341764158e..e011df3cc0dc 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ BASIC_CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
 endif
 
 DESTDIR=
-PREFIX=$(HOME)
+PREFIX ?= $(HOME)
 BINDIR=$(PREFIX)/bin
 LIBDIR=$(PREFIX)/lib
 MANDIR=$(PREFIX)/share/man
-- 
2.14.1


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

end of thread, other threads:[~2017-10-03  4:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 21:25 [PATCH] build: make PREFIX overwritable on the commandline Uwe Kleine-König
2017-09-23 11:20 ` Christopher Li
2017-09-23 18:31   ` Uwe Kleine-König
2017-10-03  4:38     ` Christopher Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.