mirror of https://github.com/joan2937/pigpio
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:
parent
3e0a5085f1
commit
008f8348fc
3
Makefile
3
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue