Allow the specification of the installation prefix

This makes it possible to install pigpio over the distributed
version by running make prefix=/usr.
This commit is contained in:
Diomidis Spinellis 2023-04-07 16:10:48 +03:00
parent 3e0a5085f1
commit 008f8348fc
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ LL2 = -L. -lpigpiod_if -pthread -lrt
LL3 = -L. -lpigpiod_if2 -pthread -lrt LL3 = -L. -lpigpiod_if2 -pthread -lrt
prefix = /usr/local # Set prefix=/usr to overwrite distributed version
prefix ?= /usr/local
exec_prefix = $(prefix) exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin bindir = $(exec_prefix)/bin
includedir = $(prefix)/include includedir = $(prefix)/include