From 04fd5f0e48a0118e91c20c1725ec9f69c8f52b1e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Apr 2012 18:25:00 +0200 Subject: Makefile: add PREFIX support This allows users to easily install to /usr/local, instead of forcing them to change 3 variables. Signed-off-by: Florian Pritz --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 238de2b..e10b011 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ VERSION:=$(shell git describe --dirty | sed 's/^v//; s/-/./g') -MANDIR=/usr/share/man -BINDIR=/usr/bin -LIBDIR=/usr/lib +PREFIX=/usr +MANDIR=$(PREFIX)/share/man +BINDIR=$(PREFIX)/bin +LIBDIR=$(PREFIX)/lib MY_LIBDIR=$(LIBDIR)/fb-client CC=cc CFLAGS:=-std=c99 -O2 -Wall -Wextra -pedantic $(CFLAGS) -- cgit v1.2.3-24-g4f1b