From b72673fdc734285898dd5f7e5c51ddb7a8afc221 Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Wed, 17 Jul 2019 01:34:02 -0400 Subject: [PATCH] Makefile: allow custom base path to install for example, `make DESTDIR=/usr install`. Signed-off-by: Wei Fu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ecc9cddcd..e81d9a9c4 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ ROOTDIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST)))) # Base path used to install. -DESTDIR=/usr/local +DESTDIR ?= /usr/local # Used to populate variables in version package. VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)