From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH] build: make PREFIX overwritable on the commandline Date: Fri, 22 Sep 2017 23:25:24 +0200 Message-ID: <20170922212524.8095-1-uwe@kleine-koenig.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from arcturus.kleine-koenig.org ([78.47.169.190]:45774 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbdIVVZb (ORCPT ); Fri, 22 Sep 2017 17:25:31 -0400 Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: linux-sparse@vger.kernel.org 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 --- 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