From 008f8348fcd1cf0da55bbb9f1403da0c36f6004e Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Fri, 7 Apr 2023 16:10:48 +0300 Subject: [PATCH] Allow the specification of the installation prefix This makes it possible to install pigpio over the distributed version by running make prefix=/usr. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0aa14fe..40a035c 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,8 @@ LL2 = -L. -lpigpiod_if -pthread -lrt LL3 = -L. -lpigpiod_if2 -pthread -lrt -prefix = /usr/local +# Set prefix=/usr to overwrite distributed version +prefix ?= /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin includedir = $(prefix)/include