Makefile: allow custom base path to install
for example, `make DESTDIR=/usr install`. Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
36e4c8e55d
commit
b72673fdc7
2
Makefile
2
Makefile
@ -17,7 +17,7 @@
|
|||||||
ROOTDIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
ROOTDIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
|
||||||
# Base path used to install.
|
# Base path used to install.
|
||||||
DESTDIR=/usr/local
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
# Used to populate variables in version package.
|
# Used to populate variables in version package.
|
||||||
VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
|
VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
|
||||||
|
Loading…
Reference in New Issue
Block a user